flockfile list corruption test
[libc-test] / src / math / hypot.c
index 842ceb4..8c40b97 100644 (file)
@@ -1,10 +1,11 @@
 #include <stdint.h>
 #include <stdio.h>
-#include "util.h"
+#include "mtest.h"
 
 static struct dd_d t[] = {
 #include "ucb/hypot.h"
 #include "sanity/hypot.h"
+#include "special/hypot.h"
 
 };
 
@@ -33,7 +34,7 @@ int main(void)
                        err++;
                }
                d = ulperr(y, p->y, p->dy);
-               if (!checkulp(d, p->r)) {
+               if (!checkulp(d, p->r) || (p->r == RN && fabs(d) >= 1.0)) {
                        printf("%s:%d: %s hypot(%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++;