3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-03-20 11:55:49 +00:00

Print full child output for all tests in parallel mode

Always print each test's captured output, not just for failures.
This preserves backward compatibility:
- PASS appears on its own line per test, as before
- ASAN/UBSAN reports from any test appear in captured logs
- timeit output is preserved for all tests

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Lev Nachmanson 2026-03-18 15:17:56 -10:00 committed by Lev Nachmanson
parent 04d2e66aab
commit 20bcf67155
2 changed files with 6 additions and 8 deletions

View file

@ -457,13 +457,11 @@ static int run_parallel(const char* exe_path, bool test_all, unsigned num_jobs,
<< result.exit_code << ", "
<< std::fixed << std::setprecision(1)
<< result.elapsed_secs << "s)" << std::endl;
if (!result.output.empty()) {
std::cout << "--- " << result.name << " output ---" << std::endl;
std::cout << result.output;
if (result.output.back() != '\n')
std::cout << std::endl;
std::cout << "--- end " << result.name << " ---" << std::endl;
}
}
if (!result.output.empty()) {
std::cout << result.output;
if (result.output.back() != '\n')
std::cout << std::endl;
}
}
}