hastur icon indicating copy to clipboard operation
hastur copied to clipboard

etest: Print the test name even if the test crashes

Open robinlinden opened this issue 6 months ago • 0 comments

std::cout is buffered, so if the test body hits e.g. an assert, it's likely that the crashing test's name won't show up in the output.

Before:

good test : PASSED
Assertion failed: false, file etest/meme_test.cpp, line 5

After:

good test : PASSED
bad test  : Assertion failed: false, file etest/meme_test.cpp, line 5

robinlinden avatar Aug 12 '24 19:08 robinlinden