aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2024-09-16 01:52:18 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2024-09-16 01:52:18 +0200
commitded9a02e5c1b2ad1a1224e7dcfb3b1550e712666 (patch)
tree00b1470eb756f9d16f5607c7228b992de1b6a031
parent909a4a6657b0912aee6435bff15ef3d054aa077e (diff)
downloadsciteco-ded9a02e5c1b2ad1a1224e7dcfb3b1550e712666.tar.gz
test suite: enable the recursion overflow test case everywhere
* It wasn't failing on FreeBSD because there are different default stacksize limits. We now set it to 8MB everywhere.
-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.