arrfab / rpms / glibc

Forked from rpms/glibc 4 years ago
Clone

Blame SOURCES/glibc-rh1647490-6.patch

147e83
Use <support/test-driver.c> in stdlib/tst-strtod-overflow.c
147e83
147e83
This downstream-only patch is needed because test-skeleton.c contains
147e83
a copy of the old test skeleton (unlike upstream), resulting in the
147e83
following error:
147e83
147e83
In file included from tst-strtod-overflow.c:53:0:
147e83
../test-skeleton.c:65:20: error: static declaration of 'test_dir' follows non-static declaration
147e83
 static const char *test_dir;
147e83
                    ^
147e83
In file included from tst-strtod-overflow.c:23:0:
147e83
../support/test-driver.h:65:20: note: previous declaration of 'test_dir' was here
147e83
 extern const char *test_dir;
147e83
                    ^
147e83
147e83
diff --git a/stdlib/tst-strtod-overflow.c b/stdlib/tst-strtod-overflow.c
147e83
index fd1be79f3f58c64b..2b30947d9a9fa03a 100644
147e83
--- a/stdlib/tst-strtod-overflow.c
147e83
+++ b/stdlib/tst-strtod-overflow.c
147e83
@@ -48,6 +48,4 @@ do_test (void)
147e83
   return 0;
147e83
 }
147e83
 
147e83
-#define TEST_FUNCTION do_test ()
147e83
-#define TIMEOUT 5
147e83
-#include "../test-skeleton.c"
147e83
+#include <support/test-driver.c>