summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2016-02-06 16:24:37 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2016-02-06 16:24:37 +0000
commitd1cebc7fe815c47a5e619d5de43bbf19707760ed (patch)
tree4c237f94b3c90b18dcb9bf407e5e5b2b37e51fad /test
parent67e87fcf7078bb339e8ea1a81e9a12fa1c0687c8 (diff)
Testsuite: log some stderr output on bad exit-code in --CONTINUE mode
Diffstat (limited to 'test')
-rwxr-xr-xtest/runtest10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/runtest b/test/runtest
index b000dbe42..d9aa97fa5 100755
--- a/test/runtest
+++ b/test/runtest
@@ -3767,7 +3767,15 @@ $0 = "[runtest $testno]";
$_ = $force_continue ? "c" : <T>;
tests_exit(1) if /^q?$/i;
log_failure($log_failed_filename, $testno, "exit code unexpected") if (/^c$/i && $force_continue);
- print "... continue forced\n" if $force_continue;
+ if ($force_continue)
+ {
+ print "stderr tail:\n";
+ print "===================\n";
+ system("tail -20 test-stderr");
+ print "===================\n";
+ print "... continue forced\n";
+ }
+
last if /^[rc]$/i;
if (/^e$/i)
{