X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fsqrt.c;h=403e2dc79f574c4fa9c105a9003d60443f8dd3f5;hb=2113a3ed8217775797dd9a82aa420c10ef1712d5;hp=b6b7de644e11b2e59e8f521d8a334ee08f0daf8e;hpb=f3f0ff4782fc90bd0f3e48fd541ee431f76aaed1;p=libc-test diff --git a/src/math/sqrt.c b/src/math/sqrt.c index b6b7de6..403e2dc 100644 --- a/src/math/sqrt.c +++ b/src/math/sqrt.c @@ -1,6 +1,6 @@ #include #include -#include "util.h" +#include "mtest.h" static struct d_d t[] = { #include "ucb/sqrt.h" @@ -27,7 +27,7 @@ int main(void) y = sqrt(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 sqrt(%a)=%a, want %s", p->file, p->line, rstr(p->r), p->x, p->y, estr(p->e)); printf(" got %s\n", estr(e));