math: fenv status flag fixes
[libc-test] / src / math / modff.c
index dfdd3ab..d599f9f 100644 (file)
@@ -25,7 +25,7 @@ int main(void)
                y = modff(p->x, &yi);
                e = fetestexcept(INEXACT|INVALID|DIVBYZERO|UNDERFLOW|OVERFLOW);
 
-               if (!checkexcept(e, p->e, p->r)) {
+               if (!checkexceptall(e, p->e, 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));