X-Git-Url: http://nsz.repo.hu/git/?p=libc-test;a=blobdiff_plain;f=src%2Fmath%2Ftrunc.c;h=5d09d84c40ed9f51af84dd8897f401cc926b65ab;hp=10b669e2abe05155b1bb845073942c84468e8fad;hb=457b0dbfc1d72080f6ba9fe47cd712e0f090732a;hpb=8d3db42ce8924972e11a12b997f8d09fc012d2b7 diff --git a/src/math/trunc.c b/src/math/trunc.c index 10b669e..5d09d84 100644 --- a/src/math/trunc.c +++ b/src/math/trunc.c @@ -20,14 +20,15 @@ int main(void) y = trunc(p->x); e = getexcept(); if (!checkexcept(e, p->e, p->r)) { - printf("%s trunc(%a)==%a except: want %s", rstr(p->r), p->x, p->y, estr(p->e)); + 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)); err++; } d = ulperr(y, p->y, p->dy); if (!checkulp(d, p->r)) { - printf("%s trunc(%a) want %a got %a ulperr %.3f = %a + %a\n", - rstr(p->r), p->x, p->y, y, d, d-p->dy, p->dy); + printf("%s:%d: %s trunc(%a) want %a got %a ulperr %.3f = %a + %a\n", + p->file, p->line, rstr(p->r), p->x, p->y, y, d, d-p->dy, p->dy); err++; } }