summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/ImplRepo/ReconnectServer/client.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2010-09-13 09:33:32 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2010-09-13 09:33:32 +0000
commit948244f0f2ff84b78121308635058cb5cf976d67 (patch)
tree9e975b04f1a17bab736351507fdc9486c06f39d7 /TAO/orbsvcs/tests/ImplRepo/ReconnectServer/client.cpp
parentfb798abe4310e88b47dd9013eb398aeccf3cb9a4 (diff)
downloadATCD-948244f0f2ff84b78121308635058cb5cf976d67.tar.gz
Mon Sep 13 09:27:13 UTC 2010 Johnny Willemsen <jwillemsen@remedy.nl>
* DevGuideExamples/AMH_AMI/inner_i.cpp: * examples/Advanced/ch_12/icp.h: * examples/Advanced/ch_18/icp.h: * examples/Advanced/ch_21/icp.h: * examples/Advanced/ch_8_and_10/icp.h: * examples/CSD_Strategy/ThreadPool/Foo_i.cpp: * examples/CSD_Strategy/ThreadPool2/FooServantList.cpp: * examples/CSD_Strategy/ThreadPool2/Foo_i.cpp: * examples/CSD_Strategy/ThreadPool4/ClientTask.cpp: * examples/CSD_Strategy/ThreadPool4/Foo_i.cpp: * examples/CSD_Strategy/ThreadPool5/ClientTask.cpp: * examples/CSD_Strategy/ThreadPool5/FooServantList.cpp: * examples/CSD_Strategy/ThreadPool5/Foo_i.cpp: * examples/CSD_Strategy/ThreadPool6/Foo_i.cpp: * examples/Callback_Quoter/Consumer_Handler.cpp: * examples/Callback_Quoter/Supplier_Timer_Handler.cpp: * examples/Kokyu_dsrt_schedulers/Task_Stats.cpp: * examples/Kokyu_dsrt_schedulers/utils.h: * examples/Logging/Logging_Service_i.h: * examples/Persistent_Grid/Grid_i.h: * examples/RTCORBA/Activity/Task_Stats.cpp: * examples/RTScheduling/Task_Stats.cpp: * examples/Simple/bank/AccountManager_i.h: * examples/Simulator/Event_Supplier/DOVE_Supplier.h: * interop-tests/wchar/wchar_reference.h: * orbsvcs/DevGuideExamples/NamingService/Naming_Server/NamingMessenger.cpp: * orbsvcs/DevGuideExamples/Security/PolicyControllingApp/MessengerClient.cpp: * orbsvcs/ImplRepo_Service/tao_imr_i.cpp: * orbsvcs/Naming_Service/NT_Naming_Server.cpp: * orbsvcs/Naming_Service/NT_Naming_Service.h: * orbsvcs/Notify_Service/NT_Notify_Server.cpp: * orbsvcs/Notify_Service/NT_Notify_Service.h: * orbsvcs/PSS/PSDL_l.cpp: * orbsvcs/Trading_Service/Trading_Service.cpp: * orbsvcs/examples/LoadBalancing/server.cpp: * orbsvcs/examples/Notify/Federation/Agent/Agent.cpp: * orbsvcs/examples/Notify/Federation/Gate/Gate.h: * orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.cpp: * orbsvcs/orbsvcs/AV/AVStreams_i.h: * orbsvcs/orbsvcs/AV/QoS_UDP.h: * orbsvcs/orbsvcs/FtRtEvent/Utils/Log.h: * orbsvcs/orbsvcs/FtRtEvent/Utils/UUID.h: * orbsvcs/orbsvcs/HTIOP/HTIOP_Connector.h: * orbsvcs/orbsvcs/Notify/Random_File.cpp: * orbsvcs/orbsvcs/Sched/Config_Scheduler.h: * orbsvcs/orbsvcs/Scheduler_Factory.cpp: * orbsvcs/orbsvcs/Time/TAO_UTO.cpp: * orbsvcs/performance-tests/RTEvent/lib/Client_Options.cpp: * orbsvcs/tests/Bug_2248_Regression/client.cpp: * orbsvcs/tests/Bug_2800_Regression/nsmain.cpp: * orbsvcs/tests/Bug_3673_Regression/nsmain.cpp: * orbsvcs/tests/COIOP_Naming_Test/Hello.h: * orbsvcs/tests/Concurrency/CC_test_utils.cpp: * orbsvcs/tests/Concurrency/CC_tests.cpp: * orbsvcs/tests/ImplRepo/ReconnectServer/client.cpp: * orbsvcs/tests/ImplRepo/ReconnectServer/serverB.cpp: * orbsvcs/tests/LoadBalancing/GenericFactory/DeadMemberDetection_App_Ctrl/Basic.cpp: * orbsvcs/tests/LoadBalancing/GenericFactory/DeadMemberDetection_App_Ctrl/client.cpp: * orbsvcs/tests/LoadBalancing/GenericFactory/DeadMemberDetection_App_Ctrl/server.cpp: * orbsvcs/tests/LoadBalancing/GenericFactory/DeadMemberDetection_Inf_Ctrl/Factory.cpp: * orbsvcs/tests/LoadBalancing/GenericFactory/DeadMemberDetection_Inf_Ctrl/Simple.cpp: * orbsvcs/tests/LoadBalancing/GenericFactory/DeadMemberDetection_Inf_Ctrl/client.cpp: * orbsvcs/tests/Notify/Bug_1884_Regression/supplier.cpp: * orbsvcs/tests/Notify/Bug_3252_Regression/server.cpp: * orbsvcs/tests/Notify/Bug_3688_Regression/supplier.cpp: * orbsvcs/tests/Notify/MT_Dispatching/Notify_Structured_Push_Consumer.cpp: * orbsvcs/tests/Notify/Persistent_Filter/Filter.cpp: * orbsvcs/tests/Notify/lib/Task_Stats.cpp: * orbsvcs/tests/Notify/performance-tests/Throughput/Throughput.cpp: * performance-tests/CSD_Strategy/TestApps/ServerApp.cpp: * performance-tests/CSD_Strategy/TestInf/AppHelper.h: * performance-tests/CSD_Strategy/TestServant/Foo_i.cpp: * tests/Bug_2677_Regression/server.cpp: * tests/Bug_2936_Regression/bug2936.cpp: * tests/Bug_3251_Regression/server.cpp: * tests/Bug_3531_Regression/client.cpp: * tests/Bug_3531_Regression/test_i.cpp: * tests/Bug_3542_Regression/server.cpp: * tests/Bug_3647_Regression/Backend_Impl.cpp: * tests/Bug_3766_Regression/client.cpp: * tests/Bug_3766_Regression/server.cpp: * tests/Bug_3812_Regression/Bug_3812_Regression.cpp: * tests/Bug_3853_Regression/Hello_i.cpp: * tests/Bug_3853_Regression/client.cpp: * tests/COIOP/Hello.h: * tests/CSD_Strategy_Tests/Broken/ServerApp.cpp: * tests/CSD_Strategy_Tests/TP_Common/AppHelper.h: * tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_ClientEngine.cpp: * tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_SimpleClientEngine.cpp: * tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_i.cpp: * tests/CSD_Strategy_Tests/TP_Test_2/ServerApp.cpp: * tests/CSD_Strategy_Tests/TP_Test_3/ServerApp.cpp: * tests/CSD_Strategy_Tests/TP_Test_4/ServerApp.cpp: * tests/CodeSets/libs/UCS4_UTF16/WUCS4_UTF16.cpp: * tests/Collocation_Exception_Test/Hello.h: * tests/Collocation_Oneway_Tests/Hello.h: * tests/Collocation_Tests/Hello.h: * tests/DII_Collocation_Tests/oneway/Hello.h: * tests/DII_Collocation_Tests/twoway/Hello.h: * tests/DynAny_Test/test_wrapper.cpp: * tests/File_IO/client.cpp: * tests/ForwardOnceUponException/client.cpp: * tests/Hang_Shutdown/client.cpp: * tests/Nested_Event_Loop/client.cpp: * tests/Nested_Upcall_Crash/Clock_Ticks.h: * tests/ORB_Local_Config/Bug_2612/Test.cpp: * tests/POA/Bug_2511_Regression/server.cpp: * tests/POA/Default_Servant2/client.cpp: * tests/POA/Explicit_Activation/Alt_Resources/Alt_Resource_Factory.h: * tests/ZIOP/client.cpp: Removed include of ace/OS.h
Diffstat (limited to 'TAO/orbsvcs/tests/ImplRepo/ReconnectServer/client.cpp')
-rwxr-xr-xTAO/orbsvcs/tests/ImplRepo/ReconnectServer/client.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/TAO/orbsvcs/tests/ImplRepo/ReconnectServer/client.cpp b/TAO/orbsvcs/tests/ImplRepo/ReconnectServer/client.cpp
index 4efc786b6a0..a60382930f3 100755
--- a/TAO/orbsvcs/tests/ImplRepo/ReconnectServer/client.cpp
+++ b/TAO/orbsvcs/tests/ImplRepo/ReconnectServer/client.cpp
@@ -3,12 +3,10 @@
#include "tao/AnyTypeCode/Any.h"
#include "ace/Get_Opt.h"
#include <ace/Task.h>
-#include <ace/OS.h>
-
const ACE_TCHAR *ior_input_file = ACE_TEXT ("file://serverA.ior");
int test_duration_sec = 15;
-bool expect_object_not_exist = false;
+bool expect_object_not_exist = false;
class Client_Task : public ACE_Task_Base
{
@@ -23,7 +21,7 @@ class Client_Task : public ACE_Task_Base
virtual int svc (void)
{
ACE_Time_Value start = ACE_OS::gettimeofday ();
- ACE_Time_Value elapsed;
+ ACE_Time_Value elapsed;
int i = 0;
while (elapsed < ACE_Time_Value (test_duration_sec))
{
@@ -45,7 +43,7 @@ class Client_Task : public ACE_Task_Base
caught_object_not_exist_ = true;
ACE_OS::sleep (1);
}
- catch (const CORBA::Exception & /*ex*/)
+ catch (const CORBA::Exception & /*ex*/)
{
//ex._tao_print_exception ("Exception caught:");
communication_failed_ = true;
@@ -54,7 +52,7 @@ class Client_Task : public ACE_Task_Base
++i;
elapsed = ACE_OS::gettimeofday () - start;
}
-
+
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t)Client thread exit \n")));
return 0;
}
@@ -109,7 +107,7 @@ parse_args (int argc, ACE_TCHAR* argv[])
int
ACE_TMAIN(int argc, ACE_TCHAR *argv[])
{
- try
+ try
{
CORBA::ORB_var orb = CORBA::ORB_init (argc, argv);
@@ -137,7 +135,7 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[])
Client_Task task (test.in ());
task.activate (THR_NEW_LWP | THR_JOINABLE, 1, 1);
-
+
ACE_Time_Value tv(test_duration_sec);
orb->run (&tv);
@@ -156,7 +154,7 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[])
ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("(%P|%t)Client test failed.\n")), 1);
}
}
- catch (const CORBA::Exception &ex)
+ catch (const CORBA::Exception &ex)
{
ex._tao_print_exception ("Exception caught by client:");
return 1;