From: Bruno Haible Date: Sat, 25 Dec 2010 00:26:18 +0000 (+0100) Subject: select tests: Avoid failures on OSF/1 5.1. X-Git-Tag: v0.1~3471 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=054446229f1ac6b21dcb0dfa3b5a3f523e4ab4c6;p=gnulib.git select tests: Avoid failures on OSF/1 5.1. * tests/test-select.c (test_accept_first, test_socket_pair): Ignore failure of closing the last socket; it may fail with ECONNRESET. --- diff --git a/ChangeLog b/ChangeLog index b0ddadecc..6124d25e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-12-24 Bruno Haible + + select tests: Avoid failures on OSF/1 5.1. + * tests/test-select.c (test_accept_first, test_socket_pair): Ignore + failure of closing the last socket; it may fail with ECONNRESET. + 2010-12-24 Eric Blake stdint: avoid HP-UX 10.20 preprocessor bug diff --git a/tests/test-select.c b/tests/test-select.c index 9c895c3b2..b9b3f844b 100644 --- a/tests/test-select.c +++ b/tests/test-select.c @@ -310,7 +310,7 @@ test_accept_first (void) failed ("cannot read data left in the socket by closed process"); ASSERT (read (c, buf, 3) == 3); ASSERT (write (c, "foo", 3) == 3); - ASSERT (close (c) == 0); + (void) close (c); /* may fail with errno = ECONNRESET */ } #endif } @@ -354,7 +354,7 @@ test_socket_pair (void) test_pair (c1, c2); ASSERT (close (c1) == 0); ASSERT (write (c2, "foo", 3) == 3); - ASSERT (close (c2) == 0); + (void) close (c2); /* may fail with errno = ECONNRESET */ }