aboutsummaryrefslogtreecommitdiff
path: root/build2/test/script/runner.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/test/script/runner.cxx')
-rw-r--r--build2/test/script/runner.cxx15
1 files changed, 6 insertions, 9 deletions
diff --git a/build2/test/script/runner.cxx b/build2/test/script/runner.cxx
index 5107144..105039a 100644
--- a/build2/test/script/runner.cxx
+++ b/build2/test/script/runner.cxx
@@ -342,22 +342,19 @@ namespace build2
//
if (!pe.normal () || pe.code () > 1)
{
- diag_record dr (fail (ll));
+ diag_record d (fail (ll));
+ print_process (d, args);
if (!pe.normal ())
{
- print_process (dr, args);
- dr << " terminated abnormally: " << pe.description ();
+ d << " terminated abnormally: " << pe.description ();
if (pe.core ())
- dr << " (core dumped)";
+ d << " (core dumped)";
}
else
- {
- print_process (dr, args);
- dr << " exited with code "
- << static_cast<uint16_t> (pe.code ());
- }
+ d << " exited with code "
+ << static_cast<uint16_t> (pe.code ());
}
// Output doesn't match the expected result.