math: fenv status flag fixes
[libc-test] / src / math / scalbf.c
index c249153..309ff8d 100644 (file)
@@ -28,7 +28,7 @@ int main(void)
                y = scalbf(p->x, p->x2);
                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 scalbf(%a,%a)=%a, want %s",
                                p->file, p->line, rstr(p->r), p->x, p->x2, p->y, estr(p->e));
                        printf(" got %s\n", estr(e));