X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fnextafter.c;h=79667fea28e2a2b556ee4649ea7e172ef47ee886;hb=d05da15802af606664c6879a7463bae1c7d62223;hp=73c084406c1b8012ea000127b5cd921733fa1e0f;hpb=5729b0cb56800bde195ac79324f23af6a54bdaac;p=libc-test diff --git a/src/math/nextafter.c b/src/math/nextafter.c index 73c0844..79667fe 100644 --- a/src/math/nextafter.c +++ b/src/math/nextafter.c @@ -1,9 +1,10 @@ #include #include -#include "util.h" +#include "mtest.h" static struct dd_d t[] = { #include "sanity/nextafter.h" +#include "special/nextafter.h" }; @@ -25,7 +26,7 @@ int main(void) y = nextafter(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 nextafter(%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));