summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2020-01-20 17:32:49 (GMT)
committerPaul Eggert <eggert@cs.ucla.edu>2020-01-20 17:33:17 (GMT)
commit759745166c0503680bb8fa1f4f60209292740492 (patch)
tree57078121b9e06fe4923a329488d565108e02438e
parent23bf27015e0cc45d0012f54b8e24ac19fdca89f7 (diff)
downloadgrep-759745166c0503680bb8fa1f4f60209292740492.tar.gz
tests: work around GCC -fprofile-generate bug
* tests/triple-backref: Add a 10 s timeout to work around what appears to be a GCC bug with -fprofile-generate. Problem reported by Martin Liška, with diagnosis by Andreas Schwab (Bug#21513).
-rw-r--r--[-rwxr-xr-x]tests/triple-backref3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/triple-backref b/tests/triple-backref
index 27ab9a3..167b8ac 100755..100644
--- a/tests/triple-backref
+++ b/tests/triple-backref
@@ -8,11 +8,12 @@
# notice and this notice are preserved.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
+require_timeout_
echo a > in || framework_failure_
fail=0
-grep -E '(.?)(.?)(.?)\3\2\1' in > out || fail=1
+timeout 10 grep -E '(.?)(.?)(.?)\3\2\1' in > out || fail=1
compare out in || fail=1
Exit $fail