summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2020-09-18 07:31:45 -0700
committerJim Meyering <meyering@fb.com>2020-09-18 07:31:45 -0700
commit97cc60acf8d4ca48bf310a8bb123d0f8cefc1b99 (patch)
tree8f21e951d3cdd7f775005b38c59f57f242c95640
parentb9f39439106cc4d6665693751ce76f41643c0f82 (diff)
downloadgrep-97cc60acf8d4ca48bf310a8bb123d0f8cefc1b99.tar.gz
tests: triple-backref: print a reference to glibc bug
* tests/triple-backref (MALLOC_CHECK_): And tell glibc not to bother with a core dump. Suggested by Pádraig Brady.
-rwxr-xr-xtests/triple-backref7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/triple-backref b/tests/triple-backref
index 870fe8c7..6753aa60 100755
--- a/tests/triple-backref
+++ b/tests/triple-backref
@@ -17,6 +17,13 @@ require_timeout_
echo a > in || framework_failure_
fail=0
+
+# Clear this, so glibc doesn't bother to produce a core dump.
+MALLOC_CHECK_=
+
+warn_ "$ME_: expect malfunction on glibc systems due to" \
+ "https://sourceware.org/bugzilla/show_bug.cgi?id=11053"
+
timeout 10 grep -E '(.?)(.?)(.?)\3\2\1' in > out || fail=1
compare out in || fail=1