From: Eric Wong Date: Sun, 26 Sep 2021 01:42:38 +0000 (+0000) Subject: t/run.perl: less confusing error reporting X-Git-Tag: v1.7.0~262 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=7bb5328616c477c269edfac89d0388e2f36cf96f t/run.perl: less confusing error reporting The $sigchld handler was reporting the last test (successful or not) for a given PID in case a worker dies prematurely. Instead, redisplay all failed test in $run_log to ensure the report only shows failed tests, and not the last started (and possibly successful) one. --- diff --git a/t/run.perl b/t/run.perl index 0fe6d08b..cf80a8a1 100755 --- a/t/run.perl +++ b/t/run.perl @@ -183,7 +183,10 @@ my $start_worker = sub { $tb->reset; } kill 'USR1', $producer if !$eof; # sets $eof in $producer - DIE join('', map { "E: $_\n" } @err) if @err; + if (@err) { # write to run_log for $sigchld handler + syswrite($run_log, "$$ @err\n"); + DIE join('', map { "E: $_\n" } @err); + } exit(0); } else { $pids{$pid} = $j;