run-tests: Correct logic for calculating number of skipped/xfail tests

Skipped tests were mistakenly being considered as expected failures.
This commit is contained in:
Shannon Booth 2023-07-30 12:14:00 +12:00 committed by Sam Atkins
parent f893e0820f
commit ddbd77cca1

View file

@ -121,10 +121,10 @@ void TestRunner::do_run_single_test(DeprecatedString const& test_path, size_t cu
++m_counts.tests_passed;
break;
case Test::Result::ExpectedFail:
++m_counts.tests_passed;
++m_counts.tests_expected_failed;
break;
case Test::Result::Skip:
++m_counts.tests_expected_failed;
++m_counts.tests_skipped;
break;
case Test::Result::Fail:
++m_counts.tests_failed;