X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Frun.perl;fp=t%2Frun.perl;h=5c05635630e66ebf4b1640cbf0174aeddf27ab11;hb=0308b7313856713a539dde078048c755334f9ae2;hp=1c7bcfc34db6fc3a24f28e468ee3d0d2f6f0827c;hpb=9867a7279070e06caf2768bdb04099e09fea2358;p=public-inbox.git diff --git a/t/run.perl b/t/run.perl index 1c7bcfc3..5c056356 100755 --- a/t/run.perl +++ b/t/run.perl @@ -71,7 +71,8 @@ sub test_status () { my $skip = ''; if (open my $fh, '<', $log) { my @not_ok = grep(!/^(?:ok |[ \t]*#)/ms, <$fh>); - pop @not_ok if $not_ok[-1] =~ /^[0-9]+\.\.[0-9]+$/; + my $last = $not_ok[-1] // ''; + pop @not_ok if $last =~ /^[0-9]+\.\.[0-9]+$/; my $pfx = "# $log: "; print $OLDERR map { $pfx.$_ } @not_ok; seek($fh, 0, SEEK_SET) or die "seek: $!";