aboutsummaryrefslogtreecommitdiff
path: root/build2/test/rule.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/test/rule.cxx')
-rw-r--r--build2/test/rule.cxx9
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;