summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2020-01-20 09:32:49 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2020-01-20 09:33:17 -0800
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 27ab9a3d..167b8ac4 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