From 91c406e9a42c85da7cae4e7a573acef8fda5f76a Mon Sep 17 00:00:00 2001 From: Steve Huston Date: Tue, 11 Jul 2000 18:22:23 +0000 Subject: ChangeLogTag:Tue Jul 11 14:20:35 2000 Steve Huston --- tests/SOCK_Send_Recv_Test.cpp | 16 ++++++++++++++-- 1 file 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"), -- cgit v1.2.1