add regex REG_ICASE test for austingroupbug #872
[libc-test] / src / math / modff.c
index ce91f98..a2d95ac 100644 (file)
@@ -1,6 +1,6 @@
 #include <stdint.h>
 #include <stdio.h>
-#include "util.h"
+#include "mtest.h"
 
 static struct f_ff t[] = {
 #include "sanity/modff.h"
@@ -25,7 +25,8 @@ int main(void)
                y = modff(p->x, &yi);
                e = fetestexcept(INEXACT|INVALID|DIVBYZERO|UNDERFLOW|OVERFLOW);
 
-               if (!checkexcept(e, p->e, p->r)) {
+               /* TODO: fix inexact */
+               if (!checkexceptall(e|INEXACT, p->e|INEXACT, p->r)) {
                        printf("%s:%d: bad fp exception: %s modff(%a)=%a,%a, want %s",
                                p->file, p->line, rstr(p->r), p->x, p->y, p->y2, estr(p->e));
                        printf(" got %s\n", estr(e));