]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
In filter_stderr_basic do not remove lines beginning with
authorFlorian Krohm <florian@eich-krohm.de>
Tue, 11 Aug 2015 20:37:28 +0000 (20:37 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Tue, 11 Aug 2015 20:37:28 +0000 (20:37 +0000)
--pid:
i.e. debug output. Asserts originating from the address space
manager look exactly like that and we do not want to filter those
out by default.
Remove some specialised filter scripts that are no longer needed
and update a few .vgtest files accordingly.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15519

massif/tests/filter_verbose
none/tests/amd64-linux/Makefile.am
none/tests/amd64-linux/bug345887.vgtest
none/tests/amd64-linux/filter_minimal [deleted file]
none/tests/amd64-linux/filter_stderr
none/tests/amd64-linux/map_32bits.vgtest
none/tests/x86-linux/Makefile.am
none/tests/x86-linux/bug345887.vgtest
none/tests/x86-linux/filter_minimal [deleted file]
tests/filter_stderr_basic

index 5f159c3ab99551396fbae923abc79e2c98f61a70..745b521ea678887e48a8938bf9b189e912e8c30e 100755 (executable)
@@ -7,6 +7,9 @@ dir=`dirname $0`
 
 $dir/filter_stderr | 
 
+# Remove any --pid:0: strings (debuglog level zero output)
+sed "/^--[0-9]\{1,7\}:0:*/d" |
+
 # Only print lines that contain "Massif:".  The -n means don't print any
 # lines by default, and the 'p' means do print those that match the pattern.
 sed -n "/Massif:/p" |
index bfe27ab0bba78d1115d738bfcf3ca0ebf1629714..3e5a959aae6e377f2a11a76d2adb870e72def77c 100644 (file)
@@ -2,7 +2,7 @@
 include $(top_srcdir)/Makefile.tool-tests.am
 
 dist_noinst_SCRIPTS = \
-       filter_stderr filter_minimal
+       filter_stderr
 
 EXTRA_DIST = \
        bug345887.stderr.exp bug345887.vgtest \
index c0144230c6e920294299d6133c2d6b903074928a..e567c478362ed90b33f81e58d7b5fc8c6f797203 100644 (file)
@@ -1,4 +1,4 @@
 prog: bug345887
 vgopts: -q
-stderr_filter: filter_minimal
+stderr_filter: filter_stderr
 cleanup: rm -f vgcore.*
diff --git a/none/tests/amd64-linux/filter_minimal b/none/tests/amd64-linux/filter_minimal
deleted file mode 100755 (executable)
index e69398c..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#! /bin/sh
-
-dir=`dirname $0`
-
-# Remove ==pid== and **pid** strings 
-perl -p -e 's/(==|\*\*)[0-9]{1,7}\1 //' |
-
-perl -p -e 's/0x[0-9A-Fa-f]+/0x......../g' |
-
-# Older bash versions print abnormal termination messages on the stderr
-# of the bash process. Newer bash versions redirect such messages properly.
-# Suppress any redirected abnormal termination messages. You can find the
-# complete list of messages in the bash source file siglist.c.
-perl -n -e 'print if !/^(Segmentation fault|Alarm clock|Aborted|Bus error)( \(core dumped\))?$/' |
-
-# Remove the size in "The main thread stack size..." message.
-sed "s/The main thread stack size used in this run was [0-9]*/The main thread stack size used in this run was .../"
-
-# NOTE: it is essential for the bug345887 testcase that the stderr
-#       filtering does *not* remove lines beginning with --
index 587754a136a3a5f4ec6b9c11dbfea7e51c2ed62c..5bf2c9ca599e64ade37fc9fb33475d1fa1553f46 100755 (executable)
@@ -2,10 +2,5 @@
 
 dir=`dirname $0`
 
-# Remove ==pid== and --pid-- and **pid** strings 
-perl -p -e 's/(==|--|\*\*)[0-9]{1,7}\1 //' |
-
-perl -p -e 's/0x[0-9A-Fa-f]+/0x......../g'
-
-# NOTE: it is essential for the bug345887 testcase that the stderr
-#       filtering does *not* remove lines beginning with --
+$dir/../../../tests/filter_stderr_basic |
+$dir/../../../tests/filter_addresses
index 2d03f13f8b37bcddeab88f902caebbca2d967692..2b7f3a04a601d0aae72befe843f586eeede4a40b 100644 (file)
@@ -1,5 +1,5 @@
 prog: map_32bits
 # take a big aspacemgr minaddr, to quickly reach the 2GB limit
 vgopts: -q --aspace-minaddr=0x7ff60000
-stderr_filter: filter_minimal
+stderr_filter: filter_stderr
 
index 4fa0fac2f5125dfd83b43dbbd3930c6c9c5d34b2..2c866935910b09aff5f19a7df7dbfe6ef158115c 100644 (file)
@@ -2,7 +2,7 @@
 include $(top_srcdir)/Makefile.tool-tests.am
 
 dist_noinst_SCRIPTS = \
-       filter_stderr filter_minimal
+       filter_stderr
 
 EXTRA_DIST = \
        bug345887.stderr.exp bug345887.vgtest \
index c0144230c6e920294299d6133c2d6b903074928a..e567c478362ed90b33f81e58d7b5fc8c6f797203 100644 (file)
@@ -1,4 +1,4 @@
 prog: bug345887
 vgopts: -q
-stderr_filter: filter_minimal
+stderr_filter: filter_stderr
 cleanup: rm -f vgcore.*
diff --git a/none/tests/x86-linux/filter_minimal b/none/tests/x86-linux/filter_minimal
deleted file mode 100755 (executable)
index e69398c..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#! /bin/sh
-
-dir=`dirname $0`
-
-# Remove ==pid== and **pid** strings 
-perl -p -e 's/(==|\*\*)[0-9]{1,7}\1 //' |
-
-perl -p -e 's/0x[0-9A-Fa-f]+/0x......../g' |
-
-# Older bash versions print abnormal termination messages on the stderr
-# of the bash process. Newer bash versions redirect such messages properly.
-# Suppress any redirected abnormal termination messages. You can find the
-# complete list of messages in the bash source file siglist.c.
-perl -n -e 'print if !/^(Segmentation fault|Alarm clock|Aborted|Bus error)( \(core dumped\))?$/' |
-
-# Remove the size in "The main thread stack size..." message.
-sed "s/The main thread stack size used in this run was [0-9]*/The main thread stack size used in this run was .../"
-
-# NOTE: it is essential for the bug345887 testcase that the stderr
-#       filtering does *not* remove lines beginning with --
index b282a1d39740956b6bf7b60ffca2d08ee34f584a..472cd8fb4dc6578d89cc8975478fd07baeffc54a 100755 (executable)
@@ -12,8 +12,9 @@ dir=`dirname $0`
 # Remove ==pid== and --pid-- and **pid** strings 
 perl -p -e 's/(==|--|\*\*)[0-9]{1,7}\1 //' |
 
-# Remove any --pid:0: strings (debuglog level zero output)
-sed "/^--[0-9]\{1,7\}:0:*/d" |
+# Do NOT remove debug level output, i.e. lines beginning with --pid:
+# Doing so would also remove asserts from the address space manager
+# and we always to see those.
 
 # Remove "Command: line".  (If wrapping occurs, it won't remove the
 # subsequent lines...)