1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:38:10 +00:00

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

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);