srctree

Robin Linden parent a25b63ea 86912372
etest: Print the test name even if the test crashes

`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.
etest/etest2.cpp added: 2, removed: 2, total 0
@@ -91,7 +91,7 @@ int Suite::run(RunOptions const &opts) {
 
bool failure = false;
for (auto const &test : tests_to_run) {
std::cout << std::left << std::setw(longest_name->name.size()) << test.name << ": ";
std::cout << std::left << std::setw(longest_name->name.size()) << test.name << ": " << std::flush;
 
Actions a{};
#ifdef ETEST_EXCEPTIONS