[Glibc-bsd-commits] r3396 - in trunk/posixtestsuite/debian: . patches
Guillem Jover
guillem at alioth.debian.org
Fri Jun 3 05:34:17 UTC 2011
Author: guillem
Date: 2011-06-03 05:34:17 +0000 (Fri, 03 Jun 2011)
New Revision: 3396
Added:
trunk/posixtestsuite/debian/patches/build_Werror_fixes.patch
Modified:
trunk/posixtestsuite/debian/changelog
trunk/posixtestsuite/debian/patches/series
Log:
Fix some test case compilation errors due to -Werror
Modified: trunk/posixtestsuite/debian/changelog
===================================================================
--- trunk/posixtestsuite/debian/changelog 2011-06-03 05:14:38 UTC (rev 3395)
+++ trunk/posixtestsuite/debian/changelog 2011-06-03 05:34:17 UTC (rev 3396)
@@ -10,6 +10,7 @@
* Now using Standards-Version 3.9.2 (no changes needed).
* Use coreutils' timeout instead of expect's timeout, as the latter was
mangling and causing the output to not be written to the logfile.
+ * Fix some test case compilation errors due to -Werror.
-- Guillem Jover <guillem at debian.org> Mon, 09 Feb 2009 22:04:24 +0200
Added: trunk/posixtestsuite/debian/patches/build_Werror_fixes.patch
===================================================================
--- trunk/posixtestsuite/debian/patches/build_Werror_fixes.patch (rev 0)
+++ trunk/posixtestsuite/debian/patches/build_Werror_fixes.patch 2011-06-03 05:34:17 UTC (rev 3396)
@@ -0,0 +1,329 @@
+---
+ conformance/interfaces/aio_fsync/1-1.c | 1 +
+ conformance/interfaces/aio_fsync/10-1.c | 1 +
+ conformance/interfaces/aio_fsync/11-1.c | 1 +
+ conformance/interfaces/aio_fsync/13-1.c | 1 +
+ conformance/interfaces/aio_fsync/6-1.c | 1 +
+ conformance/interfaces/aio_fsync/7-1.c | 1 +
+ conformance/interfaces/aio_read/12-1.c | 1 +
+ conformance/interfaces/aio_read/13-1.c | 1 +
+ conformance/interfaces/aio_read/14-1.c | 1 +
+ conformance/interfaces/aio_read/15-1.c | 3 +++
+ conformance/interfaces/aio_read/6-1.c | 1 +
+ conformance/interfaces/aio_suspend/2-1.c | 1 +
+ conformance/interfaces/aio_write/10-1.c | 1 +
+ conformance/interfaces/aio_write/11-1.c | 1 +
+ conformance/interfaces/aio_write/12-1.c | 1 +
+ conformance/interfaces/aio_write/13-1.c | 1 +
+ conformance/interfaces/aio_write/4-1.c | 1 +
+ conformance/interfaces/lio_listio/16-1.c | 1 +
+ conformance/interfaces/lio_listio/17-1.c | 1 +
+ conformance/interfaces/lio_listio/19-1.c | 1 +
+ conformance/interfaces/lio_listio/20-1.c | 1 +
+ conformance/interfaces/lio_listio/21-1.c | 1 +
+ conformance/interfaces/lio_listio/22-1.c | 1 +
+ conformance/interfaces/lio_listio/23-1.c | 1 +
+ conformance/interfaces/lio_listio/24-1.c | 1 +
+ conformance/interfaces/lio_listio/25-1.c | 1 +
+ conformance/interfaces/pthread_sigmask/18-1.c | 1 +
+ conformance/interfaces/sched_yield/1-1.c | 2 ++
+ conformance/interfaces/sem_open/1-2.c | 2 +-
+ 29 files changed, 32 insertions(+), 1 deletion(-)
+
+--- a/conformance/interfaces/aio_fsync/10-1.c
++++ b/conformance/interfaces/aio_fsync/10-1.c
+@@ -22,6 +22,7 @@
+
+ #define _XOPEN_SOURCE 600
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <aio.h>
+
+--- a/conformance/interfaces/aio_fsync/11-1.c
++++ b/conformance/interfaces/aio_fsync/11-1.c
+@@ -8,6 +8,7 @@
+
+ #define _XOPEN_SOURCE 600
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <aio.h>
+
+--- a/conformance/interfaces/aio_fsync/1-1.c
++++ b/conformance/interfaces/aio_fsync/1-1.c
+@@ -8,6 +8,7 @@
+
+ #define _XOPEN_SOURCE 600
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <aio.h>
+
+--- a/conformance/interfaces/aio_fsync/13-1.c
++++ b/conformance/interfaces/aio_fsync/13-1.c
+@@ -8,6 +8,7 @@
+
+ #define _XOPEN_SOURCE 600
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <aio.h>
+
+--- a/conformance/interfaces/aio_fsync/6-1.c
++++ b/conformance/interfaces/aio_fsync/6-1.c
+@@ -8,6 +8,7 @@
+
+ #define _XOPEN_SOURCE 600
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <aio.h>
+
+--- a/conformance/interfaces/aio_fsync/7-1.c
++++ b/conformance/interfaces/aio_fsync/7-1.c
+@@ -8,6 +8,7 @@
+
+ #define _XOPEN_SOURCE 600
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <aio.h>
+
+--- a/conformance/interfaces/aio_read/12-1.c
++++ b/conformance/interfaces/aio_read/12-1.c
+@@ -21,6 +21,7 @@
+
+ #define _XOPEN_SOURCE 600
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <aio.h>
+
+--- a/conformance/interfaces/aio_read/13-1.c
++++ b/conformance/interfaces/aio_read/13-1.c
+@@ -20,6 +20,7 @@
+
+ #define _XOPEN_SOURCE 600
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <aio.h>
+
+--- a/conformance/interfaces/aio_read/14-1.c
++++ b/conformance/interfaces/aio_read/14-1.c
+@@ -21,6 +21,7 @@
+
+ #define _XOPEN_SOURCE 600
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <aio.h>
+
+--- a/conformance/interfaces/aio_read/15-1.c
++++ b/conformance/interfaces/aio_read/15-1.c
+@@ -20,7 +20,10 @@
+ */
+
+ #define _XOPEN_SOURCE 600
++#include <sys/time.h>
++#include <sys/resource.h>
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <aio.h>
+
+--- a/conformance/interfaces/aio_read/6-1.c
++++ b/conformance/interfaces/aio_read/6-1.c
+@@ -21,6 +21,7 @@
+
+ #define _XOPEN_SOURCE 600
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <aio.h>
+
+--- a/conformance/interfaces/aio_suspend/2-1.c
++++ b/conformance/interfaces/aio_suspend/2-1.c
+@@ -20,6 +20,7 @@
+
+ #define _XOPEN_SOURCE 600
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <aio.h>
+
+--- a/conformance/interfaces/aio_write/10-1.c
++++ b/conformance/interfaces/aio_write/10-1.c
+@@ -21,6 +21,7 @@
+
+ #define _XOPEN_SOURCE 600
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <aio.h>
+
+--- a/conformance/interfaces/aio_write/11-1.c
++++ b/conformance/interfaces/aio_write/11-1.c
+@@ -21,6 +21,7 @@
+
+ #define _XOPEN_SOURCE 600
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <aio.h>
+
+--- a/conformance/interfaces/aio_write/12-1.c
++++ b/conformance/interfaces/aio_write/12-1.c
+@@ -20,6 +20,7 @@
+
+ #define _XOPEN_SOURCE 600
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <aio.h>
+
+--- a/conformance/interfaces/aio_write/13-1.c
++++ b/conformance/interfaces/aio_write/13-1.c
+@@ -21,6 +21,7 @@
+
+ #define _XOPEN_SOURCE 600
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <aio.h>
+
+--- a/conformance/interfaces/aio_write/4-1.c
++++ b/conformance/interfaces/aio_write/4-1.c
+@@ -21,6 +21,7 @@
+
+ #define _XOPEN_SOURCE 600
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <aio.h>
+
+--- a/conformance/interfaces/lio_listio/16-1.c
++++ b/conformance/interfaces/lio_listio/16-1.c
+@@ -21,6 +21,7 @@
+
+ #define _XOPEN_SOURCE 600
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <aio.h>
+
+--- a/conformance/interfaces/lio_listio/17-1.c
++++ b/conformance/interfaces/lio_listio/17-1.c
+@@ -8,6 +8,7 @@
+
+ #define _XOPEN_SOURCE 600
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <aio.h>
+
+--- a/conformance/interfaces/lio_listio/19-1.c
++++ b/conformance/interfaces/lio_listio/19-1.c
+@@ -8,6 +8,7 @@
+
+ #define _XOPEN_SOURCE 600
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <aio.h>
+
+--- a/conformance/interfaces/lio_listio/20-1.c
++++ b/conformance/interfaces/lio_listio/20-1.c
+@@ -8,6 +8,7 @@
+
+ #define _XOPEN_SOURCE 600
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <aio.h>
+
+--- a/conformance/interfaces/lio_listio/21-1.c
++++ b/conformance/interfaces/lio_listio/21-1.c
+@@ -8,6 +8,7 @@
+
+ #define _XOPEN_SOURCE 600
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <aio.h>
+
+--- a/conformance/interfaces/lio_listio/22-1.c
++++ b/conformance/interfaces/lio_listio/22-1.c
+@@ -8,6 +8,7 @@
+
+ #define _XOPEN_SOURCE 600
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <aio.h>
+
+--- a/conformance/interfaces/lio_listio/23-1.c
++++ b/conformance/interfaces/lio_listio/23-1.c
+@@ -8,6 +8,7 @@
+
+ #define _XOPEN_SOURCE 600
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <aio.h>
+
+--- a/conformance/interfaces/lio_listio/24-1.c
++++ b/conformance/interfaces/lio_listio/24-1.c
+@@ -8,6 +8,7 @@
+
+ #define _XOPEN_SOURCE 600
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <aio.h>
+
+--- a/conformance/interfaces/lio_listio/25-1.c
++++ b/conformance/interfaces/lio_listio/25-1.c
+@@ -8,6 +8,7 @@
+
+ #define _XOPEN_SOURCE 600
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <aio.h>
+
+--- a/conformance/interfaces/pthread_sigmask/18-1.c
++++ b/conformance/interfaces/pthread_sigmask/18-1.c
+@@ -184,6 +184,7 @@ void * test( void * arg )
+ sigset_t set;
+ int i, j=0;
+ int signals[] = { SIGBUS, SIGKILL, SIGABRT, SIGCHLD, SIGHUP };
++#undef NSIG
+ #define NSIG (sizeof(signals)/sizeof(int))
+ int operation[] = {SIG_SETMASK, SIG_BLOCK, SIG_UNBLOCK};
+
+--- a/conformance/interfaces/sched_yield/1-1.c
++++ b/conformance/interfaces/sched_yield/1-1.c
+@@ -22,8 +22,10 @@
+ #define LINUX
+
+ #ifdef LINUX
++#ifndef _GNU_SOURCE
+ #define _GNU_SOURCE
+ #endif
++#endif
+
+ #include <sched.h>
+ #include <stdio.h>
+--- a/conformance/interfaces/sem_open/1-2.c
++++ b/conformance/interfaces/sem_open/1-2.c
+@@ -36,7 +36,7 @@ int main()
+
+ /* Checking if mysemp has a value returned. From sem_open */
+
+- if ( &mysemp != NULL)
++ if (mysemp != NULL)
+ {
+ puts("TEST PASSED");
+ sem_close(mysemp);
Modified: trunk/posixtestsuite/debian/patches/series
===================================================================
--- trunk/posixtestsuite/debian/patches/series 2011-06-03 05:14:38 UTC (rev 3395)
+++ trunk/posixtestsuite/debian/patches/series 2011-06-03 05:34:17 UTC (rev 3396)
@@ -1,2 +1,3 @@
01_gnu.patch
02_timeout.patch
+build_Werror_fixes.patch
More information about the Glibc-bsd-commits
mailing list