aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2021-06-04 18:44:16 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2021-06-05 02:31:39 +0200
commit44daf91e3d3c56c05ff9bb2df9014b43284e39f3 (patch)
treeb751bf80db79c7992d13b621bc26f419072f0f27 /tests
parent686bb6c596c1574310b340160dfeb08df8dff81c (diff)
downloadsciteco-44daf91e3d3c56c05ff9bb2df9014b43284e39f3.tar.gz
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/atlocal.in2
-rw-r--r--tests/testsuite.at5
2 files changed, 5 insertions, 2 deletions
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