summaryrefslogtreecommitdiffstats
path: root/testsuite/tests/runtime-errors/stackoverflow.ml
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2011-12-20 14:38:53 +0000
committerXavier Leroy <xavier.leroy@inria.fr>2011-12-20 14:38:53 +0000
commita69f9be8c5fd60296550ffb23de9a2e9d4c372e4 (patch)
treec51bc599c18c98325309cd34f214bd81529c6c64 /testsuite/tests/runtime-errors/stackoverflow.ml
parentd0667f4e52167a4a415d29f76289750cf9515652 (diff)
PR#4746: wrong detection of stack overflows in native code under Linux
(quick fix, will have to find something better) testsuite/tests/runtime-errors: make the test output independent of the stack size; add a "ulimit -s" just to make sure stack is limited. testsuite/tests/asmcomp: updated to compile again. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11898 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'testsuite/tests/runtime-errors/stackoverflow.ml')
-rw-r--r--testsuite/tests/runtime-errors/stackoverflow.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/tests/runtime-errors/stackoverflow.ml b/testsuite/tests/runtime-errors/stackoverflow.ml
index 4d211bc82..ab53b8b06 100644
--- a/testsuite/tests/runtime-errors/stackoverflow.ml
+++ b/testsuite/tests/runtime-errors/stackoverflow.ml
@@ -1,5 +1,5 @@
let rec f x =
- if x land 0xFFFF <> 0
+ if not (x = 0 || x = 10000 || x = 20000)
then 1 + f (x + 1)
else
try