Skip to content

Commit a5f223c

Browse files
committed
Individual test result should not be printed for automake output
- Test results output escape characters to highlight whether the test passed or failed. Additionally, the input & output for each test can include non-ASCII characters. These characters break parsing of results (.log & .trs files) with grep, as the files are interpreted to be binary.
1 parent 752ab76 commit a5f223c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/unit/unit.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,10 @@ int main(int argc, char **argv) {
275275

276276
if (!test.m_automake_output) {
277277
std::cout << "Total >> " << total << std::endl;
278-
}
279278

280-
for (const auto t : results) {
281-
std::cout << t->print() << std::endl;
279+
for (const auto t : results) {
280+
std::cout << t->print() << std::endl;
281+
}
282282
}
283283

284284
const int skp = std::count_if(results.cbegin(), results.cend(), [](const auto &i)

0 commit comments

Comments
 (0)