|
From: Mark W. <ma...@so...> - 2023-01-11 14:46:57
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=c5d52a4056f6d732622278d1f65c4f8090533880 commit c5d52a4056f6d732622278d1f65c4f8090533880 Author: Mark Wielaard <ma...@kl...> Date: Wed Jan 11 15:44:27 2023 +0100 gdbserver tests filter out uninstalled python scripts warnings Filter out loading error messages when python scripts haven't been installed yet (running against vg-in-place) Diff: --- gdbserver_tests/filter_gdb.in | 5 +++++ gdbserver_tests/filter_vgdb.in | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gdbserver_tests/filter_gdb.in b/gdbserver_tests/filter_gdb.in index 03f26dc860..28f807d09e 100755 --- a/gdbserver_tests/filter_gdb.in +++ b/gdbserver_tests/filter_gdb.in @@ -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 diff --git a/gdbserver_tests/filter_vgdb.in b/gdbserver_tests/filter_vgdb.in index fb5c484bf8..bd593d91c9 100755 --- a/gdbserver_tests/filter_vgdb.in +++ b/gdbserver_tests/filter_vgdb.in @@ -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' |