Merge branch 'master' of git://factorcode.org/git/factor

db4
Joe Groff 2009-10-03 11:48:56 -05:00
commit 9e61c433f1
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