summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2020-09-19 20:00:57 -0700
committerJim Meyering <meyering@fb.com>2020-09-22 08:46:26 -0700
commit0bc552476f8c707de70289de2f3ca06294cd96c6 (patch)
tree1dd301b7bdb17400c212b0479af082ee244e953b
parent1444b4979dc5935b7fe1d13e76539dddbaabd242 (diff)
downloadgrep-0bc552476f8c707de70289de2f3ca06294cd96c6.tar.gz
tests: skip stack-overflow test on midnightbsd*
* tests/stack-overflow: skip_ when run on this OS. See details in https://lists.gnu.org/r/grep-devel/2020-09/msg00062.html * tests/Makefile.am (host_triplet): Export.
-rw-r--r--tests/Makefile.am1
-rwxr-xr-xtests/stack-overflow5
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index b29f26a6..9d49e40c 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -242,6 +242,7 @@ TESTS_ENVIRONMENT = \
abs_top_srcdir='$(abs_top_srcdir)' \
abs_srcdir='$(abs_srcdir)' \
built_programs="$$built_programs" \
+ host_triplet='$(host_triplet)' \
srcdir='$(srcdir)' \
top_srcdir='$(top_srcdir)' \
CC='$(CC)' \
diff --git a/tests/stack-overflow b/tests/stack-overflow
index 1e100814..4d612ec6 100755
--- a/tests/stack-overflow
+++ b/tests/stack-overflow
@@ -3,6 +3,11 @@
. "${srcdir=.}/init.sh"; path_prepend_ ../src
+case $host_triplet in
+ *-midnightbsd*)
+ skip_ 'our stack-overflow detection does not work on this system';;
+esac
+
echo grep: stack overflow > exp || framework_failure_
# Limit stack size. Otherwise, it appears to be too hard to overflow the