diff options
Diffstat (limited to 'tests/Sequence_Unit_Tests/bounded_value_sequence_ut.cpp')
-rw-r--r-- | tests/Sequence_Unit_Tests/bounded_value_sequence_ut.cpp | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/tests/Sequence_Unit_Tests/bounded_value_sequence_ut.cpp b/tests/Sequence_Unit_Tests/bounded_value_sequence_ut.cpp index 1a34645b8a6..3b4d259655c 100644 --- a/tests/Sequence_Unit_Tests/bounded_value_sequence_ut.cpp +++ b/tests/Sequence_Unit_Tests/bounded_value_sequence_ut.cpp @@ -316,16 +316,24 @@ struct Tester int ACE_TMAIN(int,ACE_TCHAR*[]) { int status = 0; - { - Tester tester; - status += tester.test_all (); - } - - { - typedef value_sequence_tester<tested_sequence,tested_allocation_traits> common; - common tester; - status += tester.test_all (); - } + try + { + { + Tester tester; + status += tester.test_all (); + } + + { + typedef value_sequence_tester<tested_sequence,tested_allocation_traits> common; + common tester; + status += tester.test_all (); + } + } + catch (const ::CORBA::Exception &ex) + { + ex._tao_print_exception("ERROR : unexpected CORBA exception caugth :"); + ++status; + } return status; } |