diff options
Diffstat (limited to 'tests/Sequence_Unit_Tests/testing_allocation_traits_ut.cpp')
-rw-r--r-- | tests/Sequence_Unit_Tests/testing_allocation_traits_ut.cpp | 37 |
1 files changed, 24 insertions, 13 deletions
diff --git a/tests/Sequence_Unit_Tests/testing_allocation_traits_ut.cpp b/tests/Sequence_Unit_Tests/testing_allocation_traits_ut.cpp index ae7445e53b4..5f56487eae9 100644 --- a/tests/Sequence_Unit_Tests/testing_allocation_traits_ut.cpp +++ b/tests/Sequence_Unit_Tests/testing_allocation_traits_ut.cpp @@ -10,6 +10,8 @@ #include "testing_allocation_traits.hpp" #include "test_macros.h" +#include "tao/SystemException.h" + #define CHECK_NO_THROW(statement) \ try { statement; } catch(...) { \ return 1; } @@ -152,20 +154,29 @@ struct Foo { int y; }; int ACE_TMAIN(int,ACE_TCHAR*[]) { int status = 0; - { - Tester<int> tester; - status += tester.test_all (); - } - - { - Tester<Foo> tester; - status += tester.test_all (); - } - { - Tester<char*> tester; - status += tester.test_all (); - } + try + { + { + Tester<int> tester; + status += tester.test_all (); + } + + { + Tester<Foo> tester; + status += tester.test_all (); + } + + { + Tester<char*> tester; + status += tester.test_all (); + } + } + catch (const ::CORBA::Exception &ex) + { + ex._tao_print_exception("ERROR : unexpected CORBA exception caugth :"); + ++status; + } return status; } |