diff options
author | Chris Cleeland <chris.cleeland@gmail.com> | 1997-02-07 23:40:42 +0000 |
---|---|---|
committer | Chris Cleeland <chris.cleeland@gmail.com> | 1997-02-07 23:40:42 +0000 |
commit | cd4bd4d4ec6aa044314714b5d02f1133622cf2f5 (patch) | |
tree | fac5377bd7419c6bf7bd38343cde89945d7cb8c6 /tests/SOCK_Test.cpp | |
parent | ecb436af35b92e0dce90f5567ab3673109263e11 (diff) | |
download | ATCD-cd4bd4d4ec6aa044314714b5d02f1133622cf2f5.tar.gz |
Fixed bugs that caused tests to fail on Linux.
Modified Files:
Naming_Test.cpp SOCK_Test.cpp
Diffstat (limited to 'tests/SOCK_Test.cpp')
-rw-r--r-- | tests/SOCK_Test.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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) |