X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-poll.c;h=9ef3c4ce2122a39389126e250d32eecd5648d888;hb=6fe87bef894e5b110b2c1d495dd2bb0c8efa07ad;hp=bbfefe43e0047848cac5ccc34142a333c8ea13e0;hpb=9c9a9765811eb1e698517065953e09d6b8c07400;p=gnulib.git diff --git a/tests/test-poll.c b/tests/test-poll.c index bbfefe43e..9ef3c4ce2 100644 --- a/tests/test-poll.c +++ b/tests/test-poll.c @@ -1,5 +1,5 @@ /* Test of poll() function. - Copyright (C) 2008 Free Software Foundation, Inc. + Copyright (C) 2008-2011 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,17 +19,22 @@ #include +/* Specification. */ +#include + +#include "signature.h" +SIGNATURE_CHECK (poll, int, (struct pollfd[], nfds_t, int)); + #include #include #include #include #include -#include #include #include #include +#include #include -#include "sockets.h" #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ # define WIN32_NATIVE @@ -50,7 +55,7 @@ #define SO_REUSEPORT SO_REUSEADDR #endif -#define TEST_PORT 12345 +#define TEST_PORT 12345 /* Minimal testing infrastructure. */ @@ -268,7 +273,7 @@ test_accept_first (void) close (s); c = connect_to_socket (true); if (poll1_nowait (c, POLLOUT | POLLWRNORM | POLLRDBAND) - != (POLLOUT | POLLWRNORM)) + != (POLLOUT | POLLWRNORM)) failed ("cannot write after blocking connect"); write (c, "foo", 3); wait (&pid); @@ -359,8 +364,6 @@ main () { int result; - gl_sockets_startup (SOCKETS_1_1); - #ifdef INTERACTIVE printf ("Please press Enter\n"); test (test_tty, "TTY");