From 44daf91e3d3c56c05ff9bb2df9014b43284e39f3 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 4 Jun 2021 18:44:16 +0200 Subject: testsuite: fixed the "Known Bugs" cases on Mac OS * there is no /bin/true * We cannot crash SciTECO using unlimited recursion, at least not before the memory limit is reached. Therefore, this test case is expected to succeed on Mac OS. --- tests/atlocal.in | 2 ++ tests/testsuite.at | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/atlocal.in b/tests/atlocal.in index 49cb11d..090a604 100644 --- a/tests/atlocal.in +++ b/tests/atlocal.in @@ -1,3 +1,5 @@ +host=@host@ + # `tests` is after `src`, so the target SciTECO is already # built. # Using the $BOOTSTRAP_SCITECO wouldn't make sense diff --git a/tests/testsuite.at b/tests/testsuite.at index beed747..59bd483 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -81,7 +81,7 @@ AT_SETUP([Pattern matching overflow]) # It could fail because the memory limit is exceeed, # but not in this case since the match string isn't too large. AT_CHECK([$SCITECO -e '100000<@I"X">J @S"^EM^X"'], 0, ignore, ignore) -AT_XFAIL_IF([/bin/true]) +AT_XFAIL_IF(true) AT_CLEANUP AT_SETUP([Recursion overflow]) @@ -89,5 +89,6 @@ AT_SETUP([Recursion overflow]) # It could fail because the memory limit is exceeed, # but not in this case since we limit the recursion. AT_CHECK([$SCITECO -e "@^Um{U.a Q.a-100000\"<%.aMm'} 0Mm"], 0, ignore, ignore) -AT_XFAIL_IF([/bin/true]) +# On Mac OS we cannot provoke a stack overflow. +AT_XFAIL_IF([case $host in *-*-darwin*) false;; esac]) AT_CLEANUP -- cgit v1.2.3