diff options
Diffstat (limited to 'testasmcomp')
-rw-r--r-- | testasmcomp/Makefile | 1 | ||||
-rw-r--r-- | testasmcomp/mainarith.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/testasmcomp/Makefile b/testasmcomp/Makefile index b27b3f33ad..cded951483 100644 --- a/testasmcomp/Makefile +++ b/testasmcomp/Makefile @@ -11,6 +11,7 @@ DEPFLAGS=$(INCLUDES) CAMLRUN=../boot/cslrun CODEGEN=./codegen +CC=$(NATIVECC) CFLAGS=-g PROGS=fib.out tak.out quicksort.out quicksort2.out soli.out integr.out \ diff --git a/testasmcomp/mainarith.c b/testasmcomp/mainarith.c index fc84e5ad24..987ee06037 100644 --- a/testasmcomp/mainarith.c +++ b/testasmcomp/mainarith.c @@ -26,7 +26,7 @@ double f, g; } #define FLOATTEST(arg,res) \ { double result = (res); \ - if (arg != result) \ + if (arg < result || arg > result) \ printf("Failed test \"%s == %s\" for f=%g and g=%g: result %e, expected %e\n", \ #arg, #res, f, g, arg, result); \ } |