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