diff options
Diffstat (limited to 'TAO/orbsvcs/tests/Security/Big_Request/client.cpp')
-rw-r--r-- | TAO/orbsvcs/tests/Security/Big_Request/client.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/TAO/orbsvcs/tests/Security/Big_Request/client.cpp b/TAO/orbsvcs/tests/Security/Big_Request/client.cpp index 2c3df8856fa..ff40770d4a5 100644 --- a/TAO/orbsvcs/tests/Security/Big_Request/client.cpp +++ b/TAO/orbsvcs/tests/Security/Big_Request/client.cpp @@ -88,6 +88,16 @@ main (int argc, char *argv[]) txObject->shutdown (ACE_TRY_ENV); ACE_TRY_CHECK; + + // Sanity check + if (data_output->length () != len + || ACE_OS::memcmp (data_input.get_buffer (), + data_output->get_buffer (), + len) != 0) + ACE_ERROR_RETURN ((LM_ERROR, + "ERROR: Received octet sequence does not match " + "the one that was sent.\n"), + -1); } ACE_CATCHANY { |