LibTest: Don't output information on tests if none exist

This commit is contained in:
Lucas CHOLLET 2023-03-28 10:57:59 -04:00 committed by Linus Groh
parent 2812ef246d
commit 66c12af45f
Notes: sideshowbarker 2024-07-16 22:51:10 +09:00

View file

@ -174,6 +174,8 @@ int TestSuite::run(Vector<NonnullRefPtr<TestCase>> const& tests)
m_testtime, m_testtime,
m_benchtime, m_benchtime,
global_timer.elapsed_milliseconds() - (m_testtime + m_benchtime)); global_timer.elapsed_milliseconds() - (m_testtime + m_benchtime));
if (test_count != 0)
dbgln("Out of {} tests, {} passed and {} failed.", test_count, test_count - test_failed_count, test_failed_count); dbgln("Out of {} tests, {} passed and {} failed.", test_count, test_count - test_failed_count, test_failed_count);
return (int)test_failed_count; return (int)test_failed_count;