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