X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fmodf.c;h=b724650309ae2d99df5274f1b91978b923389e31;hb=d05da15802af606664c6879a7463bae1c7d62223;hp=f30582dc3102119fbc5905db08aa86780b2f823e;hpb=9c6efc03eba4568ba9f1672a2bb0c50a047edd8e;p=libc-test diff --git a/src/math/modf.c b/src/math/modf.c index f30582d..b724650 100644 --- a/src/math/modf.c +++ b/src/math/modf.c @@ -1,9 +1,10 @@ #include #include -#include "util.h" +#include "mtest.h" static struct d_dd t[] = { #include "sanity/modf.h" +#include "special/modf.h" }; int main(void) @@ -24,7 +25,8 @@ int main(void) y = modf(p->x, &yi); e = fetestexcept(INEXACT|INVALID|DIVBYZERO|UNDERFLOW|OVERFLOW); - if (!checkexcept(e, p->e, p->r)) { + /* TODO: fix inexact */ + if (!checkexceptall(e|INEXACT, p->e|INEXACT, p->r)) { printf("%s:%d: bad fp exception: %s modf(%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));