From e60071df6ecc72ade7b4538315d5ddee8a797dc0 Mon Sep 17 00:00:00 2001 From: cleeland Date: Fri, 7 Feb 1997 23:40:42 +0000 Subject: Fixed bugs that caused tests to fail on Linux. Modified Files: Naming_Test.cpp SOCK_Test.cpp --- tests/SOCK_Test.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/SOCK_Test.cpp') diff --git a/tests/SOCK_Test.cpp b/tests/SOCK_Test.cpp index 37665a99bfa..2196e34281c 100644 --- a/tests/SOCK_Test.cpp +++ b/tests/SOCK_Test.cpp @@ -111,7 +111,9 @@ server (void *arg) ACE_SOCK_Stream new_stream; ACE_INET_Addr cli_addr; ACE_Handle_Set handle_set; - ACE_Time_Value tv (ACE_DEFAULT_TIMEOUT); + const ACE_Time_Value def_timeout(ACE_DEFAULT_TIMEOUT); + ACE_Time_Value tv (def_timeout); + // Performs the iterative server activities. for (;;) @@ -125,6 +127,8 @@ server (void *arg) int result = ACE_OS::select (int (peer_acceptor->get_handle ()) + 1, handle_set, 0, 0, &tv); + ACE_ASSERT (tv == def_timeout); + if (result == -1) ACE_ERROR_RETURN ((LM_ERROR, "(%P|%t) %p\n", "select"), 0); else if (result == 0) -- cgit v1.2.1