diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-25 20:50:47 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-25 20:50:47 +0000 |
commit | 1cdb4e99ae8a1a40e49582a95130d6bf1add40f9 (patch) | |
tree | 30a0f3fb8944e702bd57768457b8fa9452676c53 /TAO/tests/Param_Test/bd_long_seq.cpp | |
parent | 2f78bf03178f1add0a77ab56eb29d5681cc8a4ee (diff) | |
download | ATCD-1cdb4e99ae8a1a40e49582a95130d6bf1add40f9.tar.gz |
Fixd ACE_TRY stuff.
Diffstat (limited to 'TAO/tests/Param_Test/bd_long_seq.cpp')
-rw-r--r-- | TAO/tests/Param_Test/bd_long_seq.cpp | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/TAO/tests/Param_Test/bd_long_seq.cpp b/TAO/tests/Param_Test/bd_long_seq.cpp index d48cbe24c4e..6ae508eedb1 100644 --- a/TAO/tests/Param_Test/bd_long_seq.cpp +++ b/TAO/tests/Param_Test/bd_long_seq.cpp @@ -87,12 +87,26 @@ int Test_Bounded_Long_Sequence::run_sii_test (Param_Test_ptr objref, CORBA::Environment &ACE_TRY_ENV) { - Param_Test::Bounded_Long_Seq_out out (this->out_.out ()); - this->ret_ = objref->test_bounded_long_sequence (this->in_.in (), - this->inout_.inout (), - out, - ACE_TRY_ENV); - return (ACE_TRY_ENV.exception () ? -1:0); + ACE_TRY + { + Param_Test::Bounded_Long_Seq_out out (this->out_.out ()); + this->ret_ = objref->test_bounded_long_sequence (this->in_.in (), + this->inout_.inout (), + out, + ACE_TRY_ENV); + ACE_TRY_CHECK; + + return 0; + } + ACE_CATCHANY + { + ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, + "Test_Bounded_Long_Sequence::run_sii_test\n"); + + return -1; + } + ACE_ENDTRY; + ACE_CHECK_RETURN (-1); } int |