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