diff --git a/AK/TestSuite.h b/AK/TestSuite.h index 73f166d0c4c..409e0281524 100644 --- a/AK/TestSuite.h +++ b/AK/TestSuite.h @@ -162,7 +162,7 @@ void TestSuite::run(const NonnullRefPtrVector& tests) dbg() << "START Running " << (t.is_benchmark() ? "benchmark" : "test") << " " << t.name(); TestElapsedTimer timer; try { - t.func(); + t.func()(); } catch (const TestException& t) { fprintf(stderr, "\033[31;1mFAIL\033[0m: %s\n", t.to_string().characters()); exit(1);