From 2fedf3627649e115ade2d7c803de7a9c7e2fecec Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 21 Jul 2019 11:27:55 +0200 Subject: [PATCH] TestSuite: Make tests actually run (oops!) We were not actually running any of the unit tests, only getting a pointer to them. Thankfully they all pass, even after we start running them. :^) --- AK/TestSuite.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);