* 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 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
2011-07-22 Paul Eggert <eggert@cs.ucla.edu>
largefile: new module, replacing large-inode
Files:
tests/test-sys_select.c
Files:
tests/test-sys_select.c
Depends-on:
sys_select-c++-tests
Depends-on:
sys_select-c++-tests
struct timeval *));
#endif
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>
#include <stdio.h>
#include <string.h>
#include <netinet/in.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;
/* Check that the 'struct timeval' type is defined. */
struct timeval t1;