aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/atlocal.in5
-rw-r--r--tests/testsuite.at4
2 files changed, 6 insertions, 3 deletions
diff --git a/tests/atlocal.in b/tests/atlocal.in
index c5cb4b9..061937a 100644
--- a/tests/atlocal.in
+++ b/tests/atlocal.in
@@ -24,3 +24,8 @@ case $host in
LC_ALL=C.UTF-8
;;
esac
+
+# Default stack size on Linux (8M).
+# Some platforms allow very large stack sizes, making it hard to test
+# against potential stack overflows.
+ulimit -s 8192
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 7474d01..189fbc1 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -190,6 +190,7 @@ AT_CLEANUP
# NOTE: This bug depends on specific build options of Glib's
# PCRE which is not predictable.
+# It segfaults at least on Ubuntu 20.04 (libpcre3 v2:8.39).
#AT_SETUP([Pattern matching overflow])
## Should no longer dump core.
## It could fail because the memory limit is exceeed,
@@ -199,9 +200,6 @@ AT_CLEANUP
#AT_CLEANUP
AT_SETUP([Recursion overflow])
-# On Mac OS and FreeBSD we cannot always reliably provoke a stack overflow.
-# Let's suppose this is the case on all BSDs.
-AT_SKIP_IF([case $host in *-*-*bsd* | *-*-darwin*) true;; *) false;; esac])
# Should no longer dump core.
# It could fail because the memory limit is exceeed,
# but not in this case since we limit the recursion.