]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Bug fix: leave empty output files empty instead of transforming these into an empty...
authorBart Van Assche <bvanassche@acm.org>
Wed, 22 Jul 2009 19:14:31 +0000 (19:14 +0000)
committerBart Van Assche <bvanassche@acm.org>
Wed, 22 Jul 2009 19:14:31 +0000 (19:14 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10533

drd/tests/filter_stderr

index fef6b5141ba1f44681a5791c620172c32fd1a246..16b2559c98451f729a32ae05107cfff34b81c84f 100755 (executable)
@@ -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