summaryrefslogtreecommitdiff
path: root/testsuite/bug32271-2.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/bug32271-2.sh')
-rwxr-xr-xtestsuite/bug32271-2.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/testsuite/bug32271-2.sh b/testsuite/bug32271-2.sh
index d6e50ce..723d973 100755
--- a/testsuite/bug32271-2.sh
+++ b/testsuite/bug32271-2.sh
@@ -4,7 +4,7 @@
# uninitialised value(s)" and "Invalid read of size 1"
# by valgrind from regexp.c:286
-# Copyright (C) 2018 Free Software Foundation, Inc.
+# Copyright (C) 2018-2020 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -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