]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
More filter tuning: remove the empty line above instead of below the ... 100 errors...
authorBart Van Assche <bvanassche@acm.org>
Wed, 22 Jul 2009 18:53:46 +0000 (18:53 +0000)
committerBart Van Assche <bvanassche@acm.org>
Wed, 22 Jul 2009 18:53:46 +0000 (18:53 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10528

drd/tests/filter_stderr

index 828f53937d6bb6e244e63641e659183d5f1216c4..fef6b5141ba1f44681a5791c620172c32fd1a246 100755 (executable)
@@ -29,8 +29,8 @@ sed \
 -e "s/ (\([a-zA-Z_]*\.cpp\):[0-9]*)/ (\1:?)/" |
 
 # Remove the message that more than hundred errors have been detected
-# (consists of two lines) and also the empty line below it.
-awk '{if ($0 == "More than 100 errors detected.  Subsequent errors") {getline;getline} else print}' |
+# (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; }' |
 
 # Anonymise addresses
 $dir/../../tests/filter_addresses