diff options
author | Jim Meyering <meyering@fb.com> | 2020-01-11 20:49:51 -0800 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2020-01-11 20:49:51 -0800 |
commit | 8f2f1b7182c2e295f036e48ee8f93e52e703fd72 (patch) | |
tree | 9a2534ce61cd73ebea95e2aeaa799a4f782e21d7 /testsuite | |
parent | def38eb00e58608832e5eb4e7b427f9cb6011f4a (diff) | |
download | sed-8f2f1b7182c2e295f036e48ee8f93e52e703fd72.tar.gz |
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
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/bug32271-2.sh | 3 | ||||
-rwxr-xr-x | testsuite/newline-dfa-bug.sh | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/bug32271-2.sh b/testsuite/bug32271-2.sh index 87f167d..723d973 100755 --- a/testsuite/bug32271-2.sh +++ b/testsuite/bug32271-2.sh @@ -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 diff --git a/testsuite/newline-dfa-bug.sh b/testsuite/newline-dfa-bug.sh index 7faacf8..05e2a3b 100755 --- a/testsuite/newline-dfa-bug.sh +++ b/testsuite/newline-dfa-bug.sh @@ -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 |