-e "s/ (\([a-zA-Z_]*\.h\):[0-9]*)/ (\1:?)/" \
-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}' |
+
# Anonymise addresses
$dir/../../tests/filter_addresses
by 0x........: main (tc19_shadowmem.c:144)
---------- short gran, 1 .. 98, skip 1 ----------
-More than 100 errors detected. Subsequent errors
-will still be recorded, but in less detail than before.
-
Conflicting store by thread x at 0x........ size 2
at 0x........: child16 (tc19_shadowmem.c:57)
by 0x........: steer (tc19_shadowmem.c:290)
by 0x........: main (tc19_shadowmem.c:144)
---------- short gran, 1 .. 98, skip 1 ----------
-More than 100 errors detected. Subsequent errors
-will still be recorded, but in less detail than before.
-
Conflicting store by thread x at 0x........ size 2
at 0x........: child16 (tc19_shadowmem.c:57)
by 0x........: steer (tc19_shadowmem.c:290)