diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-04-26 18:02:27 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-04-26 18:02:27 +0300 |
commit | 530e19cc8f53f066039967c41bb432111ce98626 (patch) | |
tree | f5a2910540a8f32c1f47aef61c99d72882b4cc0d /build2/test/rule.cxx | |
parent | 671e580555d94dc95309e5e4f86e27d05189530e (diff) |
Diagnostics printing minor optimization
Diffstat (limited to 'build2/test/rule.cxx')
-rw-r--r-- | build2/test/rule.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/build2/test/rule.cxx b/build2/test/rule.cxx index 91a6806..171cbac 100644 --- a/build2/test/rule.cxx +++ b/build2/test/rule.cxx @@ -634,21 +634,18 @@ namespace build2 if (pr) // First failure? dr << fail << "test " << t << " failed"; // Multi test: test 1. + dr << error; + print_process (dr, args); + if (!pe.normal ()) { - dr << error; - print_process (dr, args); dr << " terminated abnormally: " << pe.description (); if (pe.core ()) dr << " (core dumped)"; } else - { - dr << error; - print_process (dr, args); dr << " exited with code " << static_cast<uint16_t> (pe.code ()); - } } return pr && wr; |