This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.21-606-g0035851


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  0035851c3c13f26b92fc076540d112069918a3e1 (commit)
       via  e505234f6e59c0d1a2b6f2e7d80acaf8a7a05d1f (commit)
      from  112f28e88c4ea5afbd6050e71416a23db11e4adc (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=0035851c3c13f26b92fc076540d112069918a3e1

commit 0035851c3c13f26b92fc076540d112069918a3e1
Author: Arjun Shankar <arjun.is@lostca.se>
Date:   Thu Jul 9 15:29:17 2015 +0000

    Modify several tests to use test-skeleton.c
    
    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.

diff --git a/ChangeLog b/ChangeLog
index 152723a..3d07c11 100644
--- 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.
diff --git a/elf/tst-leaks1.c b/elf/tst-leaks1.c
index 36e4aee..dcff28d 100644
--- a/elf/tst-leaks1.c
+++ b/elf/tst-leaks1.c
@@ -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"
diff --git a/localedata/tst-langinfo.c b/localedata/tst-langinfo.c
index f42ac8b..49807f4 100644
--- a/localedata/tst-langinfo.c
+++ b/localedata/tst-langinfo.c
@@ -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"
diff --git a/math/test-fpucw.c b/math/test-fpucw.c
index 21e6d2e..a333119 100644
--- a/math/test-fpucw.c
+++ b/math/test-fpucw.c
@@ -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"
diff --git a/math/test-tgmath.c b/math/test-tgmath.c
index ef5ac20..b82413e 100644
--- a/math/test-tgmath.c
+++ b/math/test-tgmath.c
@@ -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
diff --git a/math/test-tgmath2.c b/math/test-tgmath2.c
index 467deba..b03bc55 100644
--- a/math/test-tgmath2.c
+++ b/math/test-tgmath2.c
@@ -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
diff --git a/setjmp/tst-setjmp.c b/setjmp/tst-setjmp.c
index 264f517..3d6c849 100644
--- a/setjmp/tst-setjmp.c
+++ b/setjmp/tst-setjmp.c
@@ -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"
diff --git a/stdio-common/tst-sscanf.c b/stdio-common/tst-sscanf.c
index 8a2eb9e..9c61ab3 100644
--- a/stdio-common/tst-sscanf.c
+++ b/stdio-common/tst-sscanf.c
@@ -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"
diff --git a/sysdeps/x86_64/tst-audit6.c b/sysdeps/x86_64/tst-audit6.c
index 64209a1..f2f6a48 100644
--- a/sysdeps/x86_64/tst-audit6.c
+++ b/sysdeps/x86_64/tst-audit6.c
@@ -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"

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=e505234f6e59c0d1a2b6f2e7d80acaf8a7a05d1f

commit e505234f6e59c0d1a2b6f2e7d80acaf8a7a05d1f
Author: Arjun Shankar <arjun.is@lostca.se>
Date:   Thu Jul 9 14:51:30 2015 +0000

    Modify elf/tst-audit9.c to use test-skeleton.c
    
    This test was skipped by the use-test-skeleton conversion script
    [29955b5d] because the definition of `main' did not begin according to
    the GNU formatting style that the script assumed.
    
    ChangeLog:
    
    2015-07-09  Arjun Shankar  <arjun.is@lostca.se>
    
    	* elf/tst-audit9.c (main): Converted to ...
    	(do_test): ... this.
    	(TEST_FUNCTION): New macro.
    	Include test-skeleton.c.

diff --git a/ChangeLog b/ChangeLog
index 2d3152d..152723a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
+
+	* elf/tst-audit9.c (main): Converted to ...
+	(do_test): ... this.
+	(TEST_FUNCTION): New macro.
+	Include test-skeleton.c.
+
 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
 
 	* timezone/tst-tzset.c (TIMEOUT): Define to 5.
diff --git a/elf/tst-audit9.c b/elf/tst-audit9.c
index 0982d8b..7b90a5a 100644
--- a/elf/tst-audit9.c
+++ b/elf/tst-audit9.c
@@ -1,8 +1,12 @@
 #include <dlfcn.h>
 
-int main(void)
+static int
+do_test (void)
 {
   void *h = dlopen("$ORIGIN/tst-auditmod9b.so", RTLD_LAZY);
   int (*fp)(void) = dlsym(h, "f");
   return fp() - 1;
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                   |   40 ++++++++++++++++++++++++++++++++++++++++
 elf/tst-audit9.c            |    6 +++++-
 elf/tst-leaks1.c            |    7 +++++--
 localedata/tst-langinfo.c   |    7 +++++--
 math/test-fpucw.c           |    7 +++++--
 math/test-tgmath.c          |    7 +++++--
 math/test-tgmath2.c         |    7 +++++--
 setjmp/tst-setjmp.c         |    7 +++++--
 stdio-common/tst-sscanf.c   |    7 +++++--
 sysdeps/x86_64/tst-audit6.c |    7 +++++--
 10 files changed, 85 insertions(+), 17 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]