diff options
Diffstat (limited to 'build2/test/rule.cxx')
-rw-r--r-- | build2/test/rule.cxx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/build2/test/rule.cxx b/build2/test/rule.cxx index 6eb3551..e8a31cb 100644 --- a/build2/test/rule.cxx +++ b/build2/test/rule.cxx @@ -582,14 +582,12 @@ namespace build2 else if (verb) text << "test " << t; + diag_record dr; + if (!run_test (t, dr, args.data ())) { - diag_record dr; - - if (!run_test (t, dr, args.data ())) - { - dr << info << "test command line: "; - print_process (dr, args); - } + dr << info << "test command line: "; + print_process (dr, args); + dr << endf; // return } return target_state::changed; |