From ef88814b5a8da5b18f032797e10c50f524dd3efb Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 22 Jul 2009 18:53:46 +0000 Subject: [PATCH] More filter tuning: remove the empty line above instead of below the ... 100 errors ... message. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10528 --- drd/tests/filter_stderr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drd/tests/filter_stderr b/drd/tests/filter_stderr index 828f53937d..fef6b5141b 100755 --- a/drd/tests/filter_stderr +++ b/drd/tests/filter_stderr @@ -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 -- 2.47.3