git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10528
-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