]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
gdbserver tests filter out uninstalled python scripts warnings
authorMark Wielaard <mark@klomp.org>
Wed, 11 Jan 2023 14:44:27 +0000 (15:44 +0100)
committerMark Wielaard <mark@klomp.org>
Wed, 11 Jan 2023 14:45:32 +0000 (15:45 +0100)
Filter out loading error messages when python scripts haven't
been installed yet (running against vg-in-place)

gdbserver_tests/filter_gdb.in
gdbserver_tests/filter_vgdb.in

index 03f26dc8608a3f3960c07d14e3c2f9c1c553d028..28f807d09e9a11634cd9a1e61c47817f11b57034 100755 (executable)
@@ -18,6 +18,11 @@ cat > $PATTERNFILE <<EOF
 #       delete messages produced by valgrind python code loading.
 /Loaded.*valgrind-monitor.py$/d
 /Type "help valgrind" for more info\.$/d
+#       and remove loading error messages when python scripts haven't
+#       been installed yet (running against vg-in-place)
+/warning: Missing auto-load script.*/d
+/of file .*vgpreload.*so.*/d
+/Use.*info auto-load python-scripts.*/d
 
 #       delete messages produced when GDB auto-load denies loading python code.
 #       Note that the first pattern is also present in filter_vgdb.in
index fb5c484bf856e0f05e5e731fa636045ed3ae22b1..bd593d91c9777703783cfedd5634477a04127a0a 100755 (executable)
@@ -32,6 +32,11 @@ $SED -e '/_exit.c: Inappropriate ioctl for device\./d' |
 
 # filter python loading denied error message (see also filter_gdb.in)
 $SED -e '/warning: File .*valgrind-monitor.py.*declined.*/d' |
+# and remove loading error messages when python scripts haven't
+# been installed yet (running against vg-in-place)
+$SED -e '/warning: Missing auto-load script.*/d' |
+$SED -e '/of file .*vgpreload.*so.*/d' |
+$SED -e '/Use.*info auto-load python-scripts.*/d' |
 
 # and filter out any remaining empty lines
 $SED -e '/^$/d'