]> gitweb.factorcode.org Git - factor.git/commitdiff
kernel: don't test callstack overflow on OpenBSD or Windows
authorSlava Pestov <slava@factorcode.org>
Sun, 28 Mar 2010 22:58:05 +0000 (17:58 -0500)
committerSlava Pestov <slava@factorcode.org>
Sun, 28 Mar 2010 22:58:05 +0000 (17:58 -0500)
core/kernel/kernel-tests.factor

index bf16d9439fd88fa772afe240a7b459e05d83531e..152e1bac142e6a54a86a6829bac15cd45056540d 100644 (file)
@@ -1,7 +1,8 @@
 USING: arrays byte-arrays kernel kernel.private math memory
 namespaces sequences tools.test math.private quotations
 continuations prettyprint io.streams.string debugger assocs
-sequences.private accessors locals.backend grouping words ;
+sequences.private accessors locals.backend grouping words
+system ;
 IN: kernel.tests
 
 [ 0 ] [ f size ] unit-test
@@ -48,7 +49,9 @@ IN: kernel.tests
 
 : overflow-c ( -- ) overflow-c overflow-c ;
 
-[ overflow-c ] [ { "kernel-error" 14 f f } = ] must-fail-with
+os [ windows? ] [ openbsd? ] bi or [
+    [ overflow-c ] [ { "kernel-error" 14 f f } = ] must-fail-with
+] unless
 
 [ -7 <byte-array> ] must-fail