From: Bart Van Assche Date: Wed, 22 Jul 2009 19:14:31 +0000 (+0000) Subject: Bug fix: leave empty output files empty instead of transforming these into an empty... X-Git-Tag: svn/VALGRIND_3_5_0~315 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6a3d9a411742a494ad5d65dfe01ea9e30c23940d;p=thirdparty%2Fvalgrind.git Bug fix: leave empty output files empty instead of transforming these into an empty line. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10533 --- diff --git a/drd/tests/filter_stderr b/drd/tests/filter_stderr index fef6b5141b..16b2559c98 100755 --- a/drd/tests/filter_stderr +++ b/drd/tests/filter_stderr @@ -30,7 +30,7 @@ sed \ # Remove the message that more than hundred errors have been detected # (consists of two lines) and also the empty line above it. -awk 'BEGIN{begin=1} {if ($0 == "More than 100 errors detected. Subsequent errors") { getline; getline; } else { if (begin) begin = 0; else print last_line; }; last_line = $0; } END { print last_line; }' | +awk 'BEGIN{begin=1} {if ($0 == "More than 100 errors detected. Subsequent errors") { getline; getline; } else { if (begin) begin = 0; else print last_line; }; last_line = $0; } END { if (! begin) print last_line; }' | # Anonymise addresses $dir/../../tests/filter_addresses