When verbosity is requested, OpenSSL::Test::run() displays the command
authorRichard Levitte <levitte@openssl.org>
Tue, 29 Mar 2016 17:43:33 +0000 (19:43 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 30 Mar 2016 16:44:18 +0000 (18:44 +0200)
It displays the command's exit code as well.

Reviewed-by: Emilia Käsper <emilia@openssl.org>
test/testlib/OpenSSL/Test.pm

index c0471f918b5df8c4be1585765e3e25306e4f4659..c2b9f5c589625ca6e55f294fd539ca1023f9d396 100644 (file)
@@ -354,6 +354,9 @@ sub run {
        $r = $hooks{exit_checker}->($e);
     }
 
+    print STDERR "$prefix$cmd => $e\n"
+        if !$ENV{HARNESS_ACTIVE} || $ENV{HARNESS_VERBOSE};
+
     # At this point, $? stops being interesting, and unfortunately,
     # there are Test::More versions that get picky if we leave it
     # non-zero.