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. :^)
This commit is contained in:
Andreas Kling 2019-07-21 11:27:55 +02:00
parent 6eb4ace6e8
commit 2fedf36276
Notes: sideshowbarker 2024-07-19 13:06:53 +09:00

View file

@ -162,7 +162,7 @@ void TestSuite::run(const NonnullRefPtrVector<TestCase>& 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);