tests: remove valgrind-added diagnostics from stderr

* testsuite/bug32271-2.sh: Filter out lines starting with "==".
This avoids unwarranted failures on e.g., windows systems that
would emit this to stderr:
+==16281== error calling PR_SET_PTRACER, vgdb might block
* testsuite/newline-dfa-bug.sh: Likewise.
Reported by Vagelis Prokopiou on Windows subsystem for Linux
(Debian 10) in https://lists.gnu.org/r/sed-devel/2020-01/msg00018.html
and by Bruno Haible for mingw in
https://lists.gnu.org/r/sed-devel/2020-01/msg00005.html
This commit is contained in:
Jim Meyering committed 2020-01-11 20:49:51 -08:00
1 parent def38eb00e
commit 8f2f1b7182
2 files changed
+6

No files matched your search

+3
View File
@@ -64,6 +64,9 @@ valgrind --quiet --error-exitcode=1 \
grep 'valgrind: .*Assertion.*failed' err-no-posix > /dev/null \
&& skip_ 'you seem to have a buggy version of valgrind'
# Remove any valgrind-added diagnostics from stderr.
sed -i '/^==/d' err
compare exp out || fail=1
compare /dev/null err || fail=1
+3
View File
@@ -32,6 +32,9 @@ valgrind --quiet --error-exitcode=1 \
grep 'valgrind: .*Assertion.*failed' err > /dev/null \
&& skip_ 'you seem to have a buggy version of valgrind'
# Remove any valgrind-added diagnostics from stderr.
sed -i '/^==/d' err
compare exp out || fail=1
compare /dev/null err || fail=1