From 557269660c1d9796a7cf9e911efb9262f645e359 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 22 Nov 2016 12:10:03 +0200 Subject: Use diagnostics facility from libbutl --- build2/test/rule.cxx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'build2/test/rule.cxx') 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; -- cgit v1.1