]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Darwin regtest: simplify memcheck filter_supp
authorPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 29 Oct 2025 13:25:04 +0000 (14:25 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 29 Oct 2025 13:25:04 +0000 (14:25 +0100)
The filter removes used suppression lines and duplicate lines.
Old Darwin sed doesn't understand 'M{}', so use "cat -s" to remove
duplicate blank lines instead.

memcheck/tests/filter_supp.in

index 7a245ae22b89cf4438c41fedf2383bf67ebc8615..247a88e3112139a7a5a18c5d9cf5ba4fa2333061 100644 (file)
@@ -5,6 +5,7 @@ SED=@SED@
 
 ./filter_stderr "$@" |
 
-$SED 'N;/^used_suppression/M{/^used_suppression/d;$!N;d};P;D'
+$SED '/^used_suppression/d' |
+cat -s
 
 exit 0