summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_1269_Regression
diff options
context:
space:
mode:
authorbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-11-03 02:03:19 +0000
committerbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-11-03 02:03:19 +0000
commitcd4165041177b2c4a924bec479c2cd197db6d403 (patch)
treea75a066be152861096d66d53828ed0145d3969a1 /TAO/tests/Bug_1269_Regression
parent773d930097a111b5f4f2765294d29e567c7cf9aa (diff)
downloadATCD-cd4165041177b2c4a924bec479c2cd197db6d403.tar.gz
ChangeLogTag: Sat Nov 2 19:58:51 2002 Balachandran Natarajan <bala@isis-server.isis.vanderbilt.edu>
Diffstat (limited to 'TAO/tests/Bug_1269_Regression')
-rw-r--r--TAO/tests/Bug_1269_Regression/ORB_Task.cpp2
-rw-r--r--TAO/tests/Bug_1269_Regression/Server_Timer.cpp16
-rw-r--r--TAO/tests/Bug_1269_Regression/client.cpp3
-rwxr-xr-xTAO/tests/Bug_1269_Regression/run_test.pl6
-rw-r--r--TAO/tests/Bug_1269_Regression/shutdown.cpp10
5 files changed, 22 insertions, 15 deletions
diff --git a/TAO/tests/Bug_1269_Regression/ORB_Task.cpp b/TAO/tests/Bug_1269_Regression/ORB_Task.cpp
index 7901b9eccdb..35fca1ebc30 100644
--- a/TAO/tests/Bug_1269_Regression/ORB_Task.cpp
+++ b/TAO/tests/Bug_1269_Regression/ORB_Task.cpp
@@ -24,7 +24,7 @@ ORB_Task::svc (void)
this->orb_->run(ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
- ACE_CATCH(CORBA::Exception const, ex)
+ ACE_CATCH(CORBA::Exception, ex)
{
}
ACE_ENDTRY;
diff --git a/TAO/tests/Bug_1269_Regression/Server_Timer.cpp b/TAO/tests/Bug_1269_Regression/Server_Timer.cpp
index 62a493c18fe..858ef4d973c 100644
--- a/TAO/tests/Bug_1269_Regression/Server_Timer.cpp
+++ b/TAO/tests/Bug_1269_Regression/Server_Timer.cpp
@@ -28,17 +28,23 @@ Server_Timer::activate (void)
int
Server_Timer::handle_timeout (ACE_Time_Value const &, void const *)
{
- ACE_DECLARE_NEW_CORBA_ENV;
+ Test::Payload pload(1024);
+ pload.length(1024);
- Test::Payload pload(1024); pload.length(1024);
ACE_OS::memset(pload.get_buffer(), pload.length(), 0);
+
+ ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- Test::Echo_var echo = Test::Echo::_duplicate(this->echo_.in());
- if(CORBA::is_nil(echo.in()))
+ Test::Echo_var echo =
+ Test::Echo::_duplicate (this->echo_.in());
+
+ if(CORBA::is_nil (echo.in()))
return 0;
- echo->echo_payload(pload);
+ echo->echo_payload (pload
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
ACE_Time_Value tv (0, 20000);
this->reactor()->schedule_timer (this, 0, tv);
diff --git a/TAO/tests/Bug_1269_Regression/client.cpp b/TAO/tests/Bug_1269_Regression/client.cpp
index c3bf56a5589..8b57a413c66 100644
--- a/TAO/tests/Bug_1269_Regression/client.cpp
+++ b/TAO/tests/Bug_1269_Regression/client.cpp
@@ -118,7 +118,8 @@ main (int argc, char *argv[])
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- orb->run(ACE_ENV_ARG_PARAMETER);
+ orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
ACE_DEBUG ((LM_DEBUG, "(%P|%t) client - event loop finished\n"));
diff --git a/TAO/tests/Bug_1269_Regression/run_test.pl b/TAO/tests/Bug_1269_Regression/run_test.pl
index 0adb00f43e4..6c2670ffd4f 100755
--- a/TAO/tests/Bug_1269_Regression/run_test.pl
+++ b/TAO/tests/Bug_1269_Regression/run_test.pl
@@ -36,9 +36,9 @@ while($elapsed < $max_running_time) {
# ... wait for the clients to die unless they did not startup,
# ignore errors because they intentionally crash themselves!
- $CL3->WaitKill(30) unless $client3 < 0;
- $CL2->WaitKill(30) unless $client2 < 0;
- $CL1->WaitKill(30) unless $client1 < 0;
+ $CL3->WaitKill(45) unless $client3 < 0;
+ $CL2->WaitKill(45) unless $client2 < 0;
+ $CL1->WaitKill(45) unless $client1 < 0;
$elapsed = time() - $start_time;
}
diff --git a/TAO/tests/Bug_1269_Regression/shutdown.cpp b/TAO/tests/Bug_1269_Regression/shutdown.cpp
index a6d0fd89fda..e48142df37f 100644
--- a/TAO/tests/Bug_1269_Regression/shutdown.cpp
+++ b/TAO/tests/Bug_1269_Regression/shutdown.cpp
@@ -24,13 +24,13 @@ main (int argc, char *argv[])
return 1;
CORBA::Object_var tmp =
- orb->string_to_object(ior
- ACE_ENV_ARG_PARAMETER);
+ orb->string_to_object (ior
+ ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
Test::Echo_Caller_var server =
- Test::Echo_Caller::_narrow(tmp.in ()
- ACE_ENV_ARG_PARAMETER);
+ Test::Echo_Caller::_narrow (tmp.in ()
+ ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (CORBA::is_nil (server.in ()))
@@ -41,7 +41,7 @@ main (int argc, char *argv[])
1);
}
- server->shutdown(ACE_ENV_ARG_PARAMETER);
+ server->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);