diff options
author | cleeland <cleeland@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-02-07 23:40:42 +0000 |
---|---|---|
committer | cleeland <cleeland@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-02-07 23:40:42 +0000 |
commit | e60071df6ecc72ade7b4538315d5ddee8a797dc0 (patch) | |
tree | fac5377bd7419c6bf7bd38343cde89945d7cb8c6 /tests/SOCK_Test.cpp | |
parent | a44d85df7f574f149bc9fa0eb05177e6f63cb920 (diff) | |
download | ATCD-e60071df6ecc72ade7b4538315d5ddee8a797dc0.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) |