mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +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:
parent
6eb4ace6e8
commit
2fedf36276
Notes:
sideshowbarker
2024-07-19 13:06:53 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/2fedf362764
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue