From b07acab03ae9f76fe822ff9239d705f48efd270d Mon Sep 17 00:00:00 2001 From: Michael Richardson Date: Wed, 18 Sep 2019 18:18:10 -0400 Subject: [PATCH] do not warn about extra lines in stderr if there is a stderr file that was compared --- tests/TESTonce | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TESTonce b/tests/TESTonce index 07a682ac..425abaab 100755 --- a/tests/TESTonce +++ b/tests/TESTonce @@ -87,7 +87,7 @@ else { open(ERRORRAW, "<" . $rawstderrlog); open(ERROROUT, ">" . $stderrlog); while() { - next if /^$/; # blank lines are boring + next if /^\s*$/; # blank lines are boring if(/^(reading from file )(.*)(,.*)$/) { my $filename = basename($2); print ERROROUT "${1}${filename}${3}\n"; @@ -123,7 +123,7 @@ else { if($r == 0) { my $stderrlog=""; - if($linecount > 0) { + if($linecount > 0 && $errdiffstat != "-") { $stderrlog=sprintf("-- %d lines extra in stderr", $linecount); } if(!defined($ENV{"SKIPPASSED"})) { -- 2.39.5