summaryrefslogtreecommitdiff
path: root/TAO/tests/DSI_Gateway
diff options
context:
space:
mode:
authorPhil Mesnier <mesnier_p@ociweb.com>2008-04-03 01:21:01 +0000
committerPhil Mesnier <mesnier_p@ociweb.com>2008-04-03 01:21:01 +0000
commitbb89b4dab5c334a641f9fae542d67fc81ebbb115 (patch)
treeae4339e981536acdd9590f4d52da5cbe62a77985 /TAO/tests/DSI_Gateway
parente583f8285b423be83aff6a2175074c4b76ea21df (diff)
downloadATCD-bb89b4dab5c334a641f9fae542d67fc81ebbb115.tar.gz
`head -1 ChangeLog`
Diffstat (limited to 'TAO/tests/DSI_Gateway')
-rw-r--r--TAO/tests/DSI_Gateway/client.cpp19
1 files changed, 14 insertions, 5 deletions
diff --git a/TAO/tests/DSI_Gateway/client.cpp b/TAO/tests/DSI_Gateway/client.cpp
index 4aa2aebab3f..ac36e877aef 100644
--- a/TAO/tests/DSI_Gateway/client.cpp
+++ b/TAO/tests/DSI_Gateway/client.cpp
@@ -161,7 +161,12 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[])
}
catch (const test_exception& ex)
{
- ex._tao_print_exception ("Client: exception caught - ");
+ if (test_user_exception == 1)
+ ACE_DEBUG ((LM_DEBUG,
+ "Client: caught expected user exception: %s\n",
+ ex._name()));
+ else
+ ex._tao_print_exception ("Client: exception caught - ");
ACE_DEBUG ((LM_DEBUG,
"error code: %d\n"
@@ -171,13 +176,17 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[])
ex.error_message.in (),
ex.status_message.in ()));
- return 0;
+ return test_user_exception == 1 ? 0 : 1;
}
catch (const CORBA::NO_PERMISSION& ex)
{
- ex._tao_print_exception ("Client: exception caught - ");
-
- return 0;
+ if (test_system_exception == 1)
+ ACE_DEBUG ((LM_DEBUG,
+ "Client: caught expected system exception: %s\n",
+ ex._name()));
+ else
+ ex._tao_print_exception ("Client: exception caught - ");
+ return test_system_exception == 1 ? 0 : 1;
}
catch (const CORBA::Exception& ex)
{