math: add some special case tests
[libc-test] / src / math / sqrtl.c
index ab22eac..ab59cc8 100644 (file)
@@ -1,14 +1,16 @@
 #include <stdint.h>
 #include <stdio.h>
-#include "util.h"
+#include "mtest.h"
 
 static struct l_l t[] = {
 #if LDBL_MANT_DIG == 53
 #include "ucb/sqrt.h"
 #include "sanity/sqrt.h"
+#include "special/sqrt.h"
 
 #elif LDBL_MANT_DIG == 64
 #include "sanity/sqrtl.h"
+#include "special/sqrtl.h"
 
 #endif
 };
@@ -31,7 +33,7 @@ int main(void)
                y = sqrtl(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 sqrtl(%La)=%La, want %s",
                                p->file, p->line, rstr(p->r), p->x, p->y, estr(p->e));
                        printf(" got %s\n", estr(e));