add _DEFAULT_SOURCE wherever _BSD_SOURCE was used
[libc-test] / src / math / scalb.c
index 95a5533..4346cf5 100644 (file)
@@ -1,9 +1,13 @@
+#define _DEFAULT_SOURCE 1
+#define _BSD_SOURCE 1
+#define _GNU_SOURCE 1
 #include <stdint.h>
 #include <stdio.h>
-#include "util.h"
+#include "mtest.h"
 
 static struct dd_d t[] = {
 #include "sanity/scalb.h"
+#include "special/scalb.h"
 
 };
 
@@ -25,7 +29,7 @@ int main(void)
                y = scalb(p->x, p->x2);
                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 scalb(%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));