summaryrefslogtreecommitdiff
path: root/TAO/tests/Big_AMI/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Big_AMI/client.cpp')
-rw-r--r--TAO/tests/Big_AMI/client.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/TAO/tests/Big_AMI/client.cpp b/TAO/tests/Big_AMI/client.cpp
index 990354339ff..ac7a4292842 100644
--- a/TAO/tests/Big_AMI/client.cpp
+++ b/TAO/tests/Big_AMI/client.cpp
@@ -190,6 +190,14 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[])
payload);
}
+ // We are just sending all requests, but we shouldn't get any replies
+ // until we run the orb or do a real synchronous call, so check whether
+ // we didn't get any reply until this moment
+ if (handler.reply_count () > 0)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "ERROR: Got a reply during sending asynchronous calls\n"),
+ 1);
+
if (debug)
{
ACE_DEBUG ((LM_DEBUG,