diff options
Diffstat (limited to 'TAO/tests/Bug_3632_Regression/test.cpp')
-rw-r--r-- | TAO/tests/Bug_3632_Regression/test.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/TAO/tests/Bug_3632_Regression/test.cpp b/TAO/tests/Bug_3632_Regression/test.cpp index d560ad838ed..fd5f1ade0d9 100644 --- a/TAO/tests/Bug_3632_Regression/test.cpp +++ b/TAO/tests/Bug_3632_Regression/test.cpp @@ -5,9 +5,20 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) { - Test::bounded_string_seq seq; - seq.length (11); - ACE_TEST_ASSERT (seq.maximum () == 10); + try + { + Test::bounded_string_seq seq; + seq.length (11); + ACE_TEST_ASSERT (seq.maximum () == 10); + } + catch (::CORBA::BAD_PARAM const &) + { + // ignore this exception since it's expected. + } + catch (::CORBA::Exception const &) + { + return 1; + } return 0; } |