X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fnearbyintf.c;h=1bd3db9e75d68cef5455b15b1c4de15a6df715e1;hb=8dc17fa12d0ed5d041e6521ebf3249ffd192c31b;hp=4e8be0a0e1ab7b66ba0a5e4e09087dc598627553;hpb=9c6efc03eba4568ba9f1672a2bb0c50a047edd8e;p=libc-test diff --git a/src/math/nearbyintf.c b/src/math/nearbyintf.c index 4e8be0a..1bd3db9 100644 --- a/src/math/nearbyintf.c +++ b/src/math/nearbyintf.c @@ -1,9 +1,10 @@ #include #include -#include "util.h" +#include "mtest.h" static struct f_f t[] = { #include "sanity/nearbyintf.h" +#include "special/nearbyintf.h" }; @@ -25,7 +26,7 @@ int main(void) y = nearbyintf(p->x); 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 nearbyintf(%a)=%a, want %s", p->file, p->line, rstr(p->r), p->x, p->y, estr(p->e)); printf(" got %s\n", estr(e));