From ded9a02e5c1b2ad1a1224e7dcfb3b1550e712666 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 16 Sep 2024 01:52:18 +0200 Subject: 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. --- tests/atlocal.in | 5 +++++ tests/testsuite.at | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'tests') 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. -- cgit v1.2.3