diff options
author | Steve Huston <shuston@riverace.com> | 2000-07-11 18:22:23 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2000-07-11 18:22:23 +0000 |
commit | 91c406e9a42c85da7cae4e7a573acef8fda5f76a (patch) | |
tree | 52c35333ab04af4618bfe01cefc870f798da95a4 | |
parent | 007b4078b1b674b6a54d6d17999fe0db32f0288f (diff) | |
download | ATCD-91c406e9a42c85da7cae4e7a573acef8fda5f76a.tar.gz |
ChangeLogTag:Tue Jul 11 14:20:35 2000 Steve Huston <shuston@riverace.com>
-rw-r--r-- | tests/SOCK_Send_Recv_Test.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/SOCK_Send_Recv_Test.cpp b/tests/SOCK_Send_Recv_Test.cpp index 0ca32ce1383..46b5a7ffa20 100644 --- a/tests/SOCK_Send_Recv_Test.cpp +++ b/tests/SOCK_Send_Recv_Test.cpp @@ -282,10 +282,22 @@ server (void *arg) break; total_recv += got; } + ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Test 3 received %d bytes\n"), - total_recv)); + total_recv)); + if (total_recv == Test3_Total_Size) - ACE_ASSERT (got == 0 && errno == 0); + { + if (got != 0 || errno != 0) + { + ACE_ERROR ((LM_ERROR, + ACE_TEXT ("(%P|%t) Test 3 final recv status %d, expected 0\n"), + got)); + ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P|%t) %p\n"), + ACE_TEXT ("expected errno == 0, instead"))); + Test_Result = 1; // Fail + } + } else { ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P|%t) Test 3 expected %d %p\n"), |