Skip to content

Commit 243b790

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 6efb1cb commit 243b790

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
@@ -277,10 +277,10 @@ int main(int argc, char **argv) {
277277

278278
if (!test.m_automake_output) {
279279
std::cout << "Total >> " << total << std::endl;
280-
}
281280

282-
for (const auto t : results) {
283-
std::cout << t->print() << std::endl;
281+
for (const auto t : results) {
282+
std::cout << t->print() << std::endl;
283+
}
284284
}
285285

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

0 commit comments

Comments
 (0)