]> sourceware.org Git - glibc.git/commitdiff
Modify several tests to use test-skeleton.c
authorArjun Shankar <arjun.is@lostca.se>
Thu, 9 Jul 2015 15:29:17 +0000 (15:29 +0000)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Wed, 15 Jul 2015 09:40:23 +0000 (15:10 +0530)
These tests were skipped by the use-test-skeleton conversion done in
commit 29955b5d because they were reused in other tests via the #include
directive, and so deemed worth an inspection before they were modified.
This has now been done.

ChangeLog:

2015-07-09  Arjun Shankar  <arjun.is@lostca.se>

* elf/tst-leaks1.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* localedata/tst-langinfo.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* math/test-fpucw.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* math/test-tgmath.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* math/test-tgmath2.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* setjmp/tst-setjmp.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* stdio-common/tst-sscanf.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
* sysdeps/x86_64/tst-audit6.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.

ChangeLog
elf/tst-leaks1.c
localedata/tst-langinfo.c
math/test-fpucw.c
math/test-tgmath.c
math/test-tgmath2.c
setjmp/tst-setjmp.c
stdio-common/tst-sscanf.c
sysdeps/x86_64/tst-audit6.c

index 152723a2f72f917367bfdde0e13326ecae1d6226..3d07c118b4c80e97d7853b2e0d7e9645d4b9777d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,38 @@
 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
 
+       * elf/tst-leaks1.c (main): Converted to ...
+       (do_test): ... this.
+       (TEST_FUNCTION): New macro.
+       Include test-skeleton.c.
+       * localedata/tst-langinfo.c (main): Converted to ...
+       (do_test): ... this.
+       (TEST_FUNCTION): New macro.
+       Include test-skeleton.c.
+       * math/test-fpucw.c (main): Converted to ...
+       (do_test): ... this.
+       (TEST_FUNCTION): New macro.
+       Include test-skeleton.c.
+       * math/test-tgmath.c (main): Converted to ...
+       (do_test): ... this.
+       (TEST_FUNCTION): New macro.
+       Include test-skeleton.c.
+       * math/test-tgmath2.c (main): Converted to ...
+       (do_test): ... this.
+       (TEST_FUNCTION): New macro.
+       Include test-skeleton.c.
+       * setjmp/tst-setjmp.c (main): Converted to ...
+       (do_test): ... this.
+       (TEST_FUNCTION): New macro.
+       Include test-skeleton.c.
+       * stdio-common/tst-sscanf.c (main): Converted to ...
+       (do_test): ... this.
+       (TEST_FUNCTION): New macro.
+       Include test-skeleton.c.
+       * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
+       (do_test): ... this.
+       (TEST_FUNCTION): New macro.
+       Include test-skeleton.c.
+
        * elf/tst-audit9.c (main): Converted to ...
        (do_test): ... this.
        (TEST_FUNCTION): New macro.
index 36e4aee9cf86f0cdd5a6e04cab5f21f69b82c4af..dcff28dafa67568a6c610ec0e880f63b1e308532 100644 (file)
@@ -3,8 +3,8 @@
 #include <mcheck.h>
 #include <stdlib.h>
 
-int
-main (void)
+static int
+do_test (void)
 {
   mtrace ();
 
@@ -23,3 +23,6 @@ main (void)
 
   return ret;
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
index f42ac8b86431a0690176391619abf8001da65e5c..49807f454f51f111a8a09afc90360b4714f5cba0 100644 (file)
@@ -138,8 +138,8 @@ map_paramstr (const char *str)
 # define REASON(str)
 #endif
 
-int
-main (void)
+static int
+do_test (void)
 {
   int result = 0;
 
@@ -281,3 +281,6 @@ main (void)
 
   return result;
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
index 21e6d2e8f6531f1c548a2c394e8fc44f113ddf5d..a3331197ef3d540250f5d89d8c5f6b314453fd8a 100644 (file)
@@ -23,8 +23,8 @@
 # define FPU_CONTROL _FPU_DEFAULT
 #endif
 
-int
-main (void)
+static int
+do_test (void)
 {
 #ifdef _FPU_GETCW
 /* Some architectures don't have _FPU_GETCW (e.g. Linux/Alpha).  */
@@ -44,3 +44,6 @@ main (void)
   return 0;
 #endif
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
index ef5ac20b9a865af35697ccd0c259636a345e3243..b82413eb31dd4bbf3f3c8bc253cb39c19aba5d35 100644 (file)
@@ -54,8 +54,8 @@ int count_cldouble;
 #define NCALLS_INT 4
 #define NCCALLS    47
 
-int
-main (void)
+static int
+do_test (void)
 {
   int result = 0;
 
@@ -210,6 +210,9 @@ main (void)
 #include "test-tgmath.c"
 #endif
 
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
+
 #else
 
 #ifdef DEBUG
index 467debac8c14eb7486bca6bb4d7d8b2dc2dc2380..b03bc556762f6b542729f5d9cbe73fe4663fc240 100644 (file)
@@ -334,8 +334,8 @@ test (const int Vint4, const long long int Vllong4)
   return result;
 }
 
-int
-main (void)
+static int
+do_test (void)
 {
   return test (vint1, vllong1);
 }
@@ -366,6 +366,9 @@ main (void)
 #include "test-tgmath2.c"
 #endif
 
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
+
 #else
 
 #ifdef DEBUG
index 264f517753231dad6953a53fe394f0f3afd7426f..3d6c84908e78c5b5171e959d846172f80a095f38 100644 (file)
@@ -28,8 +28,8 @@ jump (int val)
   longjmp (env, val);
 }
 
-int
-main (void)
+static int
+do_test (void)
 {
   int value;
 
@@ -115,3 +115,6 @@ main (void)
 
   return lose ? EXIT_FAILURE : EXIT_SUCCESS;
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
index 8a2eb9e39c4752a30941753d7f0325c2aa352fd1..9c61ab3b1b17a2797f0e6a951d85c5a571d2d425 100644 (file)
@@ -124,8 +124,8 @@ struct test2
   { L("0x.e+0"), L("%g%c"), 2, '+' },
 };
 
-int
-main (void)
+static int
+do_test (void)
 {
   double d[6];
   long l[6];
@@ -268,3 +268,6 @@ main (void)
 
   return result;
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
index 64209a152e7424a66d47d81c92ed3883b3c4bda0..f2f6a487c4115e0f2e8bb4731508104af102d7c3 100644 (file)
@@ -25,8 +25,8 @@ avx_enabled (void)
 }
 
 
-int
-main (void)
+static int
+do_test (void)
 {
   /* Run AVX test only if AVX is supported.  */
   if (avx_enabled ())
@@ -40,3 +40,6 @@ main (void)
     }
   return 0;
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../../test-skeleton.c"
This page took 0.134581 seconds and 5 git commands to generate.