regex memory corruption regression test
[libc-test] / src / math / lrintf.c
index 9e2ac07..0d48980 100644 (file)
@@ -1,6 +1,6 @@
 #include <stdint.h>
 #include <stdio.h>
-#include "util.h"
+#include "mtest.h"
 
 static struct f_i t[] = {
 #include "sanity/lrintf.h"
@@ -31,7 +31,7 @@ int main(void)
                        printf(" got %s\n", estr(e));
                        err++;
                }
-               if (yi != p->i) {
+               if (!(p->e&INVALID) && yi != p->i) {
                        printf("%s:%d: %s lrintf(%a) want %lld got %lld\n",
                                p->file, p->line, rstr(p->r), p->x, p->i, yi);
                        err++;