X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmath%2Ftruncl.c;h=686343f79ff27832385e7c666e41b30eb6a4cd45;hb=75aab93ef75299e347be24f57223dc93f2af80a4;hp=2b7596a9fce8848d1f13208a83900ab34d804c9d;hpb=4282b03a8c212b0e38af1876364be5f332673ce6;p=libc-test diff --git a/src/math/truncl.c b/src/math/truncl.c index 2b7596a..686343f 100644 --- a/src/math/truncl.c +++ b/src/math/truncl.c @@ -25,14 +25,15 @@ int main(void) y = truncl(p->x); e = getexcept(); if (!checkexcept(e, p->e, p->r)) { - printf("%s truncl(%La)==%La except: want %s", rstr(p->r), p->x, p->y, estr(p->e)); + printf("%s:%d: bad fp exception: %s truncl(%La)=%La, want %s", + p->file, p->line, rstr(p->r), p->x, p->y, estr(p->e)); printf(" got %s\n", estr(e)); err++; } d = ulperrl(y, p->y, p->dy); if (!checkulp(d, p->r)) { - printf("%s truncl(%La) want %La got %La ulperr %.3f = %a + %a\n", - rstr(p->r), p->x, p->y, y, d, d-p->dy, p->dy); + printf("%s:%d: %s truncl(%La) want %La got %La ulperr %.3f = %a + %a\n", + p->file, p->line, rstr(p->r), p->x, p->y, y, d, d-p->dy, p->dy); err++; } }