While writing a crash test, I noticed that the output is really confusing.
Code:
TEST_CASE(foobar)
{
EXPECT_CRASH("Now testing my special thing", [] {
VERIFY_NOT_REACHED();
return Test::Crash::Failure::DidNotCrash;
});
}
Output:
Testing: "Now testing my special thing"
FAIL: /home/user/workspace/serenity/Tests/AK/TestDuration.cpp:533: VERIFY_NOT_REACHED() called
PASS: Terminated with signal 6
Completed test 'from_unix_time_parts' in 0ms
Finished 16 tests and 1 benchmarks in 0ms (0ms tests, 0ms benchmarks, 0ms other).
Out of 16 tests, 16 passed and 0 failed.
I hope you can see how having a "FAIL PASS" is a bit confusing, even though it's quite clear in the end that "Out of 16 tests, 16 passed and 0 failed."
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too