diff options
Diffstat (limited to 'tests/Bug_3506_Regression/client.cpp')
-rw-r--r-- | tests/Bug_3506_Regression/client.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/Bug_3506_Regression/client.cpp b/tests/Bug_3506_Regression/client.cpp index 34f24b89e24..fdf9f73ddf7 100644 --- a/tests/Bug_3506_Regression/client.cpp +++ b/tests/Bug_3506_Regression/client.cpp @@ -119,12 +119,20 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[]) { int retval = 0; - m_ORB_p = CORBA::ORB_init (argc, argv); - IF_Test_client testclient; + try + { + m_ORB_p = CORBA::ORB_init (argc, argv); + IF_Test_client testclient; - for (int i = 0; i < 10; i++) + for (int i = 0; i < 10; i++) + { + retval += testclient.foo (argc, argv, i == 9); + } + } + catch (const ::CORBA::Exception &ex) { - retval += testclient.foo (argc, argv, i == 9); + ex._tao_print_exception("ERROR : unexpected CORBA exception caugth :"); + ++retval; } return retval; } |