mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
LibTest: Don't output information on tests if none exist
This commit is contained in:
parent
2812ef246d
commit
66c12af45f
Notes:
sideshowbarker
2024-07-16 22:51:10 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/66c12af45f Pull-request: https://github.com/SerenityOS/serenity/pull/18162 Reviewed-by: https://github.com/linusg
1 changed files with 3 additions and 1 deletions
|
@ -174,7 +174,9 @@ int TestSuite::run(Vector<NonnullRefPtr<TestCase>> const& tests)
|
|||
m_testtime,
|
||||
m_benchtime,
|
||||
global_timer.elapsed_milliseconds() - (m_testtime + m_benchtime));
|
||||
dbgln("Out of {} tests, {} passed and {} failed.", test_count, test_count - test_failed_count, test_failed_count);
|
||||
|
||||
if (test_count != 0)
|
||||
dbgln("Out of {} tests, {} passed and {} failed.", test_count, test_count - test_failed_count, test_failed_count);
|
||||
|
||||
return (int)test_failed_count;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue