math: add some float f(float,int) and some float f(float,int*) tests
[libc-test] / src / math / copysignf.c
index 6359a71..8456a8f 100644 (file)
@@ -3,8 +3,8 @@
 #include "util.h"
 
 static struct ff_f t[] = {
-
 #include "sanity/copysignf.h"
+
 };
 
 int main(void)
@@ -20,14 +20,15 @@ int main(void)
                y = copysignf(p->x, p->x2);
                e = getexcept();
                if (!checkexcept(e, p->e, p->r)) {
-                       printf("%s copysignf(%a,%a)==%a except: want %s", rstr(p->r), p->x, p->x2, p->y, estr(p->e));
+                       printf("%s:%d: bad fp exception: %s copysignf(%a,%a)=%a, want %s",
+                               p->file, p->line, rstr(p->r), p->x, p->x2, p->y, estr(p->e));
                        printf(" got %s\n", estr(e));
                        err++;
                }
                d = ulperrf(y, p->y, p->dy);
                if (!checkulp(d, p->r)) {
-                       printf("%s copysignf(%a,%a) want %a got %a ulperr %.3f = %a + %a\n",
-                               rstr(p->r), p->x, p->x2, p->y, y, d, d-p->dy, p->dy);
+                       printf("%s:%d: %s copysignf(%a,%a) want %a got %a ulperr %.3f = %a + %a\n",
+                               p->file, p->line, rstr(p->r), p->x, p->x2, p->y, y, d, d-p->dy, p->dy);
                        err++;
                }
        }