diff options
Diffstat (limited to 'tests/Sequence_Unit_Tests/unbounded_octet_sequence_nocopy_ut.cpp')
-rw-r--r-- | tests/Sequence_Unit_Tests/unbounded_octet_sequence_nocopy_ut.cpp | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/tests/Sequence_Unit_Tests/unbounded_octet_sequence_nocopy_ut.cpp b/tests/Sequence_Unit_Tests/unbounded_octet_sequence_nocopy_ut.cpp index 0bc62b60efa..808569938ed 100644 --- a/tests/Sequence_Unit_Tests/unbounded_octet_sequence_nocopy_ut.cpp +++ b/tests/Sequence_Unit_Tests/unbounded_octet_sequence_nocopy_ut.cpp @@ -440,16 +440,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; } |