summaryrefslogtreecommitdiff
path: root/TAO/tests/Param_Test/fixed_array.cpp
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-06-25 20:50:47 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-06-25 20:50:47 +0000
commit23167957e37a46bb845da10275004101a4c2ea40 (patch)
tree30a0f3fb8944e702bd57768457b8fa9452676c53 /TAO/tests/Param_Test/fixed_array.cpp
parent7585c75d652f2d58fa3510a59dce1f19015c1fcf (diff)
downloadATCD-23167957e37a46bb845da10275004101a4c2ea40.tar.gz
Fixd ACE_TRY stuff.
Diffstat (limited to 'TAO/tests/Param_Test/fixed_array.cpp')
-rw-r--r--TAO/tests/Param_Test/fixed_array.cpp24
1 files changed, 19 insertions, 5 deletions
diff --git a/TAO/tests/Param_Test/fixed_array.cpp b/TAO/tests/Param_Test/fixed_array.cpp
index 9027af625e1..a65afcd02b3 100644
--- a/TAO/tests/Param_Test/fixed_array.cpp
+++ b/TAO/tests/Param_Test/fixed_array.cpp
@@ -87,11 +87,25 @@ int
Test_Fixed_Array::run_sii_test (Param_Test_ptr objref,
CORBA::Environment &ACE_TRY_ENV)
{
- this->ret_ = objref->test_fixed_array (this->in_,
- this->inout_,
- this->out_,
- ACE_TRY_ENV);
- return (ACE_TRY_ENV.exception () ? -1:0);
+ ACE_TRY
+ {
+ this->ret_ = objref->test_fixed_array (this->in_,
+ this->inout_,
+ this->out_,
+ ACE_TRY_ENV);
+ ACE_TRY_CHECK;
+
+ return 0;
+ }
+ ACE_CATCHANY
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
+ "Test_Fixed_Array::run_sii_test\n");
+
+ return -1;
+ }
+ ACE_ENDTRY;
+ ACE_CHECK_RETURN (-1);
}
int