mirror of
https://github.com/Z3Prover/z3
synced 2026-03-20 03:53:10 +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:
parent
04d2e66aab
commit
20bcf67155
2 changed files with 6 additions and 8 deletions
|
|
@ -160,7 +160,7 @@ void test_optimize_translate() {
|
|||
Z3_del_context(ctx1);
|
||||
}
|
||||
|
||||
void test_max_reg() {
|
||||
void test_max_reg() {
|
||||
// BNH multi-objective optimization problem using Z3 Optimize C API.
|
||||
// Mimics /tmp/bnh_z3.py: two objectives over a constrained 2D domain.
|
||||
// f1 = 4*x1^2 + 4*x2^2
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue