math.floats.env: disable trap tests on OpenBSD i386 for now, until The World's Most Secure Operating System fixes a local DoS exploit

Slava Pestov 2009-10-03 10:59:54 -05:00
parent d30ebc6213
commit 5dfe721e0c
1 changed files with 63 additions and 58 deletions

View File

@ -110,6 +110,9 @@ os linux? cpu x86.64? and [
-1.0 3.0 /f double>bits
] unit-test
! FP traps cause a kernel panic on OpenBSD 4.5 i386
os openbsd eq? cpu x86.32 eq? and [
: test-traps ( traps inputs quot -- quot' )
append '[ _ _ with-fp-traps ] ;
@ -177,6 +180,8 @@ os linux? cpu x86.64? and [
[ f ] [ -15.0 0/0. ] \ u>= test-comparison-compiled unit-test
] when
] unless
! Ensure traps get cleared
[ 1/0. ] [ 1.0 0.0 /f ] unit-test