sys_select tests: Check the signature of FD_*.
authorBruno Haible <bruno@clisp.org>
Sat, 23 Jul 2011 01:24:19 +0000 (03:24 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 23 Jul 2011 01:24:19 +0000 (03:24 +0200)
* tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
signature tests from here...
* tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
here.
* modules/sys_select-tests (Files): Add tests/signature.h.

ChangeLog
modules/sys_select-tests
tests/test-select.c
tests/test-sys_select.c

index 3e941fe..137a9fb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-07-22  Bruno Haible  <bruno@clisp.org>
+
+       sys_select tests: Check the signature of FD_*.
+       * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
+       signature tests from here...
+       * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
+       here.
+       * modules/sys_select-tests (Files): Add tests/signature.h.
+
 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
 
        largefile: new module, replacing large-inode
index 3d92499..a8127b2 100644 (file)
@@ -1,5 +1,6 @@
 Files:
 tests/test-sys_select.c
+tests/signature.h
 
 Depends-on:
 sys_select-c++-tests
index 9e927f8..47d7759 100644 (file)
@@ -31,21 +31,6 @@ SIGNATURE_CHECK (select, int, (int, fd_set *, fd_set *, fd_set *,
                                struct timeval *));
 #endif
 
-/* The following may be macros without underlying functions, so only
-   check signature if they are not macros.  */
-#ifndef FD_CLR
-SIGNATURE_CHECK (FD_CLR, void, (int, fd_set *));
-#endif
-#ifndef FD_ISSET
-SIGNATURE_CHECK (FD_ISSET, void, (int, fd_set *));
-#endif
-#ifndef FD_SET
-SIGNATURE_CHECK (FD_SET, int, (int, fd_set *));
-#endif
-#ifndef FD_ZERO
-SIGNATURE_CHECK (FD_ZERO, void, (fd_set *));
-#endif
-
 #include <stdio.h>
 #include <string.h>
 #include <netinet/in.h>
index 619a570..76596db 100644 (file)
 
 #include <sys/select.h>
 
+#include "signature.h"
+
+/* The following may be macros without underlying functions, so only
+   check signature if they are not macros.  */
+#ifndef FD_CLR
+SIGNATURE_CHECK (FD_CLR, void, (int, fd_set *));
+#endif
+#ifndef FD_ISSET
+SIGNATURE_CHECK (FD_ISSET, void, (int, fd_set *));
+#endif
+#ifndef FD_SET
+SIGNATURE_CHECK (FD_SET, int, (int, fd_set *));
+#endif
+#ifndef FD_ZERO
+SIGNATURE_CHECK (FD_ZERO, void, (fd_set *));
+#endif
+
 /* Check that the 'struct timeval' type is defined.  */
 struct timeval t1;