summaryrefslogtreecommitdiff
path: root/TAO/tests
diff options
context:
space:
mode:
authorbala <balanatarajan@users.noreply.github.com>2003-09-30 14:53:33 +0000
committerbala <balanatarajan@users.noreply.github.com>2003-09-30 14:53:33 +0000
commitc5f9e7876f07b80831973c04e84d766f22e3b954 (patch)
tree0865718f9033f293f21354ca2197f1a35c619f5f /TAO/tests
parent193de84a2f23b8efc6bf47d766f26b72f3dbbd4c (diff)
downloadATCD-c5f9e7876f07b80831973c04e84d766f22e3b954.tar.gz
ChangeLogTag:Tue Sep 30 09:51:08 2003 Balachandran Natarajan <bala@dre.vanderbilt.edu>
Diffstat (limited to 'TAO/tests')
-rw-r--r--TAO/tests/RTCORBA/Priority_Inversion_With_Bands/test_i.cpp26
1 files changed, 20 insertions, 6 deletions
diff --git a/TAO/tests/RTCORBA/Priority_Inversion_With_Bands/test_i.cpp b/TAO/tests/RTCORBA/Priority_Inversion_With_Bands/test_i.cpp
index 9412bc1a451..cd59317c2a7 100644
--- a/TAO/tests/RTCORBA/Priority_Inversion_With_Bands/test_i.cpp
+++ b/TAO/tests/RTCORBA/Priority_Inversion_With_Bands/test_i.cpp
@@ -20,14 +20,28 @@ test_i::test_i (CORBA::ORB_ptr orb,
current_iteration_ (0),
total_iterations_ (0)
{
- CORBA::Object_var object =
- this->orb_->resolve_initial_references ("RTCurrent");
+ ACE_DECLARE_NEW_CORBA_ENV;
- this->rt_current_ =
- RTCORBA::Current::_narrow (object.in ());
+ ACE_TRY
+ {
+
+ CORBA::Object_var object =
+ this->orb_->resolve_initial_references ("RTCurrent"
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ this->rt_current_ =
+ RTCORBA::Current::_narrow (object.in ()
+ ACE_ENV_ARG_PARAMETER);
- this->work_iterations_in_one_sec_ =
- this->estimate_iterations ();
+ this->work_iterations_in_one_sec_ =
+ this->estimate_iterations ();
+ }
+ ACE_CATCHANY
+ {
+ ACE_RE_THROW;
+ }
+ ACE_ENDTRY;
}
void