diff options
Diffstat (limited to 'TAO/tests/Param_Test/param_test_i.cpp')
-rw-r--r-- | TAO/tests/Param_Test/param_test_i.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/TAO/tests/Param_Test/param_test_i.cpp b/TAO/tests/Param_Test/param_test_i.cpp index ac068c3b6af..41809a4ee50 100644 --- a/TAO/tests/Param_Test/param_test_i.cpp +++ b/TAO/tests/Param_Test/param_test_i.cpp @@ -795,7 +795,8 @@ Param_Test_i::test_exception (CORBA::ULong s1, ACE_THROW_SPEC ((CORBA::SystemException, Param_Test::Ooops)) { - int d = s1 % 3; + int d = this->test_exception_count_ % 3; + this->test_exception_count_++; if (d == 0) { s2 = s1 * 2; @@ -804,7 +805,6 @@ Param_Test_i::test_exception (CORBA::ULong s1, } else if (d == 1) ACE_THROW_RETURN (Param_Test::Ooops (CORBA::string_dup (" % 3 == 1"), s1), 0); - ACE_THROW_RETURN (Param_Test::BadBoy (), 0); } @@ -825,7 +825,7 @@ CORBA::Any* Param_Test_i::test_complex_any (const CORBA::Any &a1, CORBA::Any &a2, CORBA::Any_out a3, - CORBA::Environment &) + CORBA::Environment &ACE_TRY_ENV) ACE_THROW_SPEC ((CORBA::SystemException)) { CORBA::Any_var ret (new CORBA::Any (a1)); |