From 054446229f1ac6b21dcb0dfa3b5a3f523e4ab4c6 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 25 Dec 2010 01:26:18 +0100 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ tests/test-select.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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 */ } -- 2.11.0