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 | 23167957e37a46bb845da10275004101a4c2ea40 (patch) | |
tree | 30a0f3fb8944e702bd57768457b8fa9452676c53 /TAO/tests/Param_Test/bd_struct_seq.cpp | |
parent | 7585c75d652f2d58fa3510a59dce1f19015c1fcf (diff) | |
download | ATCD-23167957e37a46bb845da10275004101a4c2ea40.tar.gz |
Fixd ACE_TRY stuff.
Diffstat (limited to 'TAO/tests/Param_Test/bd_struct_seq.cpp')
-rw-r--r-- | TAO/tests/Param_Test/bd_struct_seq.cpp | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/TAO/tests/Param_Test/bd_struct_seq.cpp b/TAO/tests/Param_Test/bd_struct_seq.cpp index 9a53167389e..a8b23ebbf19 100644 --- a/TAO/tests/Param_Test/bd_struct_seq.cpp +++ b/TAO/tests/Param_Test/bd_struct_seq.cpp @@ -90,12 +90,27 @@ int Test_Bounded_Struct_Sequence::run_sii_test (Param_Test_ptr objref, CORBA::Environment &ACE_TRY_ENV) { - Param_Test::Bounded_StructSeq_out out (this->out_.out ()); - this->ret_ = objref->test_bounded_struct_sequence (this->in_, - this->inout_.inout (), - out, - ACE_TRY_ENV); - return (ACE_TRY_ENV.exception () ? -1:0); + ACE_TRY + { + Param_Test::Bounded_StructSeq_out out (this->out_.out ()); + + this->ret_ = objref->test_bounded_struct_sequence (this->in_, + this->inout_.inout (), + out, + ACE_TRY_ENV); + ACE_TRY_CHECK; + + return 0; + } + ACE_CATCHANY + { + ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, + "Test_Bounded_String_Sequence::run_sii_test\n"); + + return -1; + } + ACE_ENDTRY; + ACE_CHECK_RETURN (-1); } int |