summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/InterfaceRepo
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/tests/InterfaceRepo')
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/Application_Test/IFR_Application_Test.mpc2
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/Application_Test/client.cpp8
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/Application_Test/ifr_dii_client.cpp9
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/Application_Test/server.cpp10
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/client.cpp8
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/idl3_client.cpp10
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/IFR_Test/Admin_Client.cpp70
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/IFR_Test/client.cpp8
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Latency_Query_Client.cpp14
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Latency_Test.mpc1
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/client.cpp8
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/Ptest.cpp19
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/test.cpp8
13 files changed, 90 insertions, 85 deletions
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/IFR_Application_Test.mpc b/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/IFR_Application_Test.mpc
index 3396f7a98fe..30860084757 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/IFR_Application_Test.mpc
+++ b/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/IFR_Application_Test.mpc
@@ -2,6 +2,7 @@
// $Id$
project(*server): taoexe, portableserver, ifr_client, minimum_corba {
+ exename = server
Source_Files {
test_i.cpp
@@ -10,6 +11,7 @@ project(*server): taoexe, portableserver, ifr_client, minimum_corba {
}
project(*client): taoexe, portableserver, ifr_client, dynamicinterface, minimum_corba {
+ exename = client
IDL_Files {
}
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/client.cpp b/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/client.cpp
index 3e16668c65b..b759cedf515 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/client.cpp
+++ b/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/client.cpp
@@ -2,21 +2,23 @@
// $Id$
#include "ifr_dii_client.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Application_Test,
client,
"$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
IFR_DII_Client client;
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- if (client.init (argc,
- argv
+ if (client.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER)
== -1)
{
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/ifr_dii_client.cpp b/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/ifr_dii_client.cpp
index f6dd2238e12..7952549b52f 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/ifr_dii_client.cpp
+++ b/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/ifr_dii_client.cpp
@@ -3,6 +3,7 @@
#include "ifr_dii_client.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Application_Test,
ifr_dii_client,
@@ -26,8 +27,7 @@ IFR_DII_Client::init (int argc,
char *argv[]
ACE_ENV_ARG_DECL)
{
- this->orb_ = CORBA::ORB_init (argc,
- argv,
+ this->orb_ = CORBA::ORB_init (argc, argv,
0
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
@@ -98,10 +98,9 @@ IFR_DII_Client::run (ACE_ENV_SINGLE_ARG_DECL)
}
int
-IFR_DII_Client::parse_args (int argc,
- char *argv[])
+IFR_DII_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt opts (argc, argv, "dn");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "dn");
int c;
while ((c = opts ()) != -1)
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/server.cpp b/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/server.cpp
index 7cfe8d9c287..ec921b9cd71 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/server.cpp
+++ b/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/server.cpp
@@ -3,6 +3,7 @@
#include "test_i.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Application_Test, server, "$Id$")
@@ -11,7 +12,7 @@ static const char *ior_output_file = "iorfile";
static int
write_ior_to_file (const char *ior)
{
- FILE *output_file = ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file = ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
{
@@ -39,12 +40,13 @@ write_ior_to_file (const char *ior)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/client.cpp b/TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/client.cpp
index 410ad1fd4f3..1b1d241038c 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/client.cpp
+++ b/TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/client.cpp
@@ -2,20 +2,22 @@
// $Id$
#include "idl3_client.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Application_Test,
client,
"$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
IDL3_Client client;
ACE_TRY_NEW_ENV
{
- if (client.init (argc,
- argv
+ if (client.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER)
== -1)
{
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/idl3_client.cpp b/TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/idl3_client.cpp
index 93fa6ae910a..b0652fe8484 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/idl3_client.cpp
+++ b/TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/idl3_client.cpp
@@ -3,6 +3,7 @@
#include "idl3_client.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_string.h"
ACE_RCSID (Application_Test,
@@ -260,8 +261,7 @@ IDL3_Client::init (int argc,
char *argv[]
ACE_ENV_ARG_DECL)
{
- this->orb_ = CORBA::ORB_init (argc,
- argv,
+ this->orb_ = CORBA::ORB_init (argc, argv,
0
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
@@ -341,10 +341,9 @@ IDL3_Client::run (ACE_ENV_SINGLE_ARG_DECL)
}
int
-IDL3_Client::parse_args (int argc,
- char *argv[])
+IDL3_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt opts (argc, argv, "d");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "d");
int c;
while ((c = opts ()) != -1)
@@ -1890,4 +1889,3 @@ IDL3_Client::home_finder_test (CORBA::ComponentIR::HomeDescription *hd
return 0;
}
-
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/IFR_Test/Admin_Client.cpp b/TAO/orbsvcs/tests/InterfaceRepo/IFR_Test/Admin_Client.cpp
index ef26b0b054d..a1afbad818e 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/IFR_Test/Admin_Client.cpp
+++ b/TAO/orbsvcs/tests/InterfaceRepo/IFR_Test/Admin_Client.cpp
@@ -7,6 +7,7 @@
#include "tao/CDR.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/SString.h"
ACE_RCSID (IFR_Test,
@@ -60,14 +61,12 @@ Admin_Client::init (int argc,
{
ACE_TRY_NEW_ENV
{
- this->orb_ = CORBA::ORB_init (argc,
- argv,
+ this->orb_ = CORBA::ORB_init (argc, argv,
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- int retval = this->parse_args (argc,
- argv);
+ int retval = this->parse_args (argc, argv);
if (retval != 0)
return retval;
@@ -152,10 +151,9 @@ Admin_Client::run (void)
}
int
-Admin_Client::parse_args (int argc,
- char *argv[])
+Admin_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt opts (argc, argv, "di:t:");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "di:t:");
int c;
int result = 0;
CORBA::ULong i = 0;
@@ -470,7 +468,7 @@ Admin_Client::enum_test (ACE_ENV_SINGLE_ARG_DECL)
td->name.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (td->name, "my_enum") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (td->name.in(), "my_enum") == 0);
if (this->debug_)
{
@@ -479,7 +477,7 @@ Admin_Client::enum_test (ACE_ENV_SINGLE_ARG_DECL)
td->id.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (td->id, "IDL:my_enum:1.0") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (td->id.in(), "IDL:my_enum:1.0") == 0);
if (this->debug_)
{
@@ -488,7 +486,7 @@ Admin_Client::enum_test (ACE_ENV_SINGLE_ARG_DECL)
td->defined_in.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (td->defined_in, "") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (td->defined_in.in(), "") == 0);
if (this->debug_)
{
@@ -497,7 +495,7 @@ Admin_Client::enum_test (ACE_ENV_SINGLE_ARG_DECL)
td->version.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (td->version, "1.0") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (td->version.in(), "1.0") == 0);
CORBA::TCKind kind = td->type->kind (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
@@ -566,7 +564,7 @@ Admin_Client::enum_test (ACE_ENV_SINGLE_ARG_DECL)
str.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (str.in (), members[i]) == 0);
+ ACE_ASSERT (ACE_OS::strcmp (str.in (), static_cast<const char*>(members[i])) == 0);
}
@@ -606,7 +604,7 @@ Admin_Client::enum_test (ACE_ENV_SINGLE_ARG_DECL)
tmp));
}
- ACE_ASSERT (ACE_OS::strcmp (fellows[i], members[i]) == 0);
+ ACE_ASSERT (ACE_OS::strcmp (static_cast<const char*>(fellows[i]), static_cast<const char*>(members[i])) == 0);
}
evar->name ("another_enum"
@@ -846,7 +844,7 @@ Admin_Client::alias_test (ACE_ENV_SINGLE_ARG_DECL)
td->name.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (td->name, "my_alias") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (td->name.in(), "my_alias") == 0);
if (this->debug_)
{
@@ -855,7 +853,7 @@ Admin_Client::alias_test (ACE_ENV_SINGLE_ARG_DECL)
td->version.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (td->version, "1.1") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (td->version.in(), "1.1") == 0);
kind = td->type->kind (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
@@ -1085,7 +1083,7 @@ Admin_Client::struct_test (ACE_ENV_SINGLE_ARG_DECL)
str.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (str.in (), members[i].name) == 0);
+ ACE_ASSERT (ACE_OS::strcmp (str.in (), members[i].name.in()) == 0);
}
CORBA::Contained::Description_var desc =
@@ -1102,7 +1100,7 @@ Admin_Client::struct_test (ACE_ENV_SINGLE_ARG_DECL)
td->name.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (td->name, "my_struct") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (td->name.in(), "my_struct") == 0);
if (this->debug_)
{
@@ -1111,7 +1109,7 @@ Admin_Client::struct_test (ACE_ENV_SINGLE_ARG_DECL)
td->id.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (td->id, "IDL:my_struct:1.0") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (td->id.in(), "IDL:my_struct:1.0") == 0);
if (this->debug_)
{
@@ -1120,7 +1118,7 @@ Admin_Client::struct_test (ACE_ENV_SINGLE_ARG_DECL)
td->version.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (td->version, "1.0") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (td->version.in(), "1.0") == 0);
members.length (2);
members[0].name = CORBA::string_dup ("long_mem");
@@ -1180,13 +1178,13 @@ Admin_Client::struct_test (ACE_ENV_SINGLE_ARG_DECL)
if (i == length - 1)
{
cmp_result =
- ACE_OS::strcmp (out_members[i].name, "my_enum");
+ ACE_OS::strcmp (out_members[i].name.in(), "my_enum");
ACE_ASSERT (cmp_result == 0);
}
else
{
cmp_result =
- ACE_OS::strcmp (out_members[i].name, members[i].name);
+ ACE_OS::strcmp (out_members[i].name.in(), members[i].name.in());
ACE_ASSERT (cmp_result == 0);
}
}
@@ -1624,7 +1622,7 @@ Admin_Client::union_test (ACE_ENV_SINGLE_ARG_DECL)
}
// Multiple labels for first member shifts index by 1.
- ACE_ASSERT (ACE_OS::strcmp (str.in (), u_members[i + 1].name) == 0);
+ ACE_ASSERT (ACE_OS::strcmp (str.in (), u_members[i + 1].name.in()) == 0);
CORBA::Any_var label = tc->member_label (i
ACE_ENV_ARG_PARAMETER);
@@ -1765,7 +1763,7 @@ Admin_Client::exception_test (ACE_ENV_SINGLE_ARG_DECL)
str.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (str.in (), members[i].name) == 0);
+ ACE_ASSERT (ACE_OS::strcmp (str.in (), members[i].name.in()) == 0);
}
CORBA::Contained::Description_var desc =
@@ -1782,7 +1780,7 @@ Admin_Client::exception_test (ACE_ENV_SINGLE_ARG_DECL)
ed->name.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (ed->name, "my_exception") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (ed->name.in(), "my_exception") == 0);
if (this->debug_)
{
@@ -1791,7 +1789,7 @@ Admin_Client::exception_test (ACE_ENV_SINGLE_ARG_DECL)
ed->id.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (ed->id, "IDL:my_exception:1.0") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (ed->id.in(), "IDL:my_exception:1.0") == 0);
if (this->debug_)
{
@@ -1800,7 +1798,7 @@ Admin_Client::exception_test (ACE_ENV_SINGLE_ARG_DECL)
ed->defined_in.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (ed->defined_in, "") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (ed->defined_in.in(), "") == 0);
if (this->debug_)
{
@@ -1809,7 +1807,7 @@ Admin_Client::exception_test (ACE_ENV_SINGLE_ARG_DECL)
ed->version.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (ed->version, "1.0") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (ed->version.in(), "1.0") == 0);
members.length (2);
members[0].name = CORBA::string_dup ("long_mem");
@@ -1872,13 +1870,13 @@ Admin_Client::exception_test (ACE_ENV_SINGLE_ARG_DECL)
if (i == 2)
{
cmp_result =
- ACE_OS::strcmp (out_members[i].name, "my_enum");
+ ACE_OS::strcmp (out_members[i].name.in(), "my_enum");
ACE_ASSERT (cmp_result == 0);
}
else
{
cmp_result =
- ACE_OS::strcmp (out_members[i].name, members[i].name);
+ ACE_OS::strcmp (out_members[i].name.in(), members[i].name.in());
ACE_ASSERT (cmp_result == 0);
}
}
@@ -1909,13 +1907,13 @@ Admin_Client::exception_test (ACE_ENV_SINGLE_ARG_DECL)
if (i == 1)
{
cmp_result =
- ACE_OS::strcmp (out_members[i].name, "my_enum");
+ ACE_OS::strcmp (out_members[i].name.in(), "my_enum");
ACE_ASSERT (cmp_result == 0);
}
else
{
cmp_result =
- ACE_OS::strcmp (out_members[i].name, members[i].name);
+ ACE_OS::strcmp (out_members[i].name.in(), members[i].name.in());
ACE_ASSERT (cmp_result == 0);
}
}
@@ -2092,7 +2090,7 @@ Admin_Client::exception_test (ACE_ENV_SINGLE_ARG_DECL)
ed->name.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (ed->name, "my_exception") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (ed->name.in(), "my_exception") == 0);
}
else
{
@@ -2122,7 +2120,7 @@ Admin_Client::exception_test (ACE_ENV_SINGLE_ARG_DECL)
td->name.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (td->name, "my_enum") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (td->name.in(), "my_enum") == 0);
}
}
@@ -2524,7 +2522,7 @@ Admin_Client::interface_test (ACE_ENV_SINGLE_ARG_DECL)
od->defined_in.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (od->defined_in, "IDL:p_iface:1.0") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (od->defined_in.in(), "IDL:p_iface:1.0") == 0);
CORBA::TypeCode_var result = od->result;
CORBA::TCKind kind = result->kind (ACE_ENV_SINGLE_ARG_PARAMETER);
@@ -2986,7 +2984,7 @@ Admin_Client::move_test (ACE_ENV_SINGLE_ARG_DECL)
tmp));
}
- ACE_ASSERT (ACE_OS::strcmp (tmp, u_members[i].name) == 0);
+ ACE_ASSERT (ACE_OS::strcmp (tmp, u_members[i].name.in()) == 0);
}
CORBA::ContainedSeq_var out_contents =
@@ -3050,7 +3048,7 @@ Admin_Client::move_test (ACE_ENV_SINGLE_ARG_DECL)
}
else
{
- ACE_ASSERT (ACE_OS::strcmp (tmp, u_members[i].name) == 0);
+ ACE_ASSERT (ACE_OS::strcmp (tmp, u_members[i].name.in()) == 0);
}
}
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/IFR_Test/client.cpp b/TAO/orbsvcs/tests/InterfaceRepo/IFR_Test/client.cpp
index aa3af160455..af5265406ed 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/IFR_Test/client.cpp
+++ b/TAO/orbsvcs/tests/InterfaceRepo/IFR_Test/client.cpp
@@ -2,17 +2,19 @@
// $Id$
#include "Admin_Client.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (IFR_Test,
client,
"$Id$")
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Admin_Client admin_client;
- int retval = admin_client.init (argc,
- argv);
+ int retval = admin_client.init (convert.get_argc(), convert.get_ASCII_argv());
if (retval == -1)
{
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Latency_Query_Client.cpp b/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Latency_Query_Client.cpp
index c29daa4ff2a..33d5a850b02 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Latency_Query_Client.cpp
+++ b/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Latency_Query_Client.cpp
@@ -3,6 +3,7 @@
#include "Latency_Query_Client.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/High_Res_Timer.h"
#include "ace/Stats.h"
#include "ace/Sample_History.h"
@@ -30,14 +31,12 @@ Latency_Query_Client::init (int argc,
{
ACE_TRY_NEW_ENV
{
- this->orb_ = CORBA::ORB_init (argc,
- argv,
+ this->orb_ = CORBA::ORB_init (argc, argv,
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- int retval = this->parse_args (argc,
- argv);
+ int retval = this->parse_args (argc, argv);
if (retval != 0)
{
@@ -137,7 +136,7 @@ Latency_Query_Client::run (void)
if (this->do_dump_history_)
{
- history.dump_samples ("HISTORY", gsf);
+ history.dump_samples (ACE_TEXT("HISTORY"), gsf);
}
ACE_Basic_Stats stats;
@@ -162,10 +161,9 @@ Latency_Query_Client::run (void)
}
int
-Latency_Query_Client::parse_args (int argc,
- char *argv[])
+Latency_Query_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt opts (argc, argv, "dhi:");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "dhi:");
int c;
int result = 0;
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Latency_Test.mpc b/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Latency_Test.mpc
index f2cf973217a..243b151c51f 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Latency_Test.mpc
+++ b/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Latency_Test.mpc
@@ -1,4 +1,5 @@
// $Id$
project: ifr_client {
+ exename = client
avoids += ace_for_tao
}
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/client.cpp b/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/client.cpp
index 43c9155ebb1..6364ca7811f 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/client.cpp
+++ b/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/client.cpp
@@ -2,18 +2,20 @@
// $Id$
#include "Latency_Query_Client.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Latency__Test,
client,
"$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Latency_Query_Client client;
- int retval = client.init (argc,
- argv);
+ int retval = client.init (convert.get_argc(), convert.get_ASCII_argv());
if (retval == -1)
{
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/Ptest.cpp b/TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/Ptest.cpp
index 10146a9a882..378064b3ac2 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/Ptest.cpp
+++ b/TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/Ptest.cpp
@@ -3,6 +3,7 @@
#include "Ptest.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_string.h"
ACE_RCSID(Persistence_Test, Ptest, "$Id$")
@@ -18,19 +19,16 @@ Ptest::~Ptest (void)
}
int
-Ptest::init (int argc,
- char *argv[])
+Ptest::init (int argc, char *argv[])
{
ACE_TRY_NEW_ENV
{
- this->orb_ = CORBA::ORB_init (argc,
- argv,
+ this->orb_ = CORBA::ORB_init (argc, argv,
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- int retval = this->parse_args (argc,
- argv);
+ int retval = this->parse_args (argc, argv);
if (retval != 0)
return retval;
@@ -102,10 +100,9 @@ Ptest::run (void)
}
int
-Ptest::parse_args (int argc,
- char *argv[])
+Ptest::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt opts (argc, argv, "dq");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "dq");
int c;
while ((c = opts ()) != -1)
@@ -252,11 +249,11 @@ Ptest::query (ACE_ENV_SINGLE_ARG_DECL)
if (i == length - 1)
{
- ACE_ASSERT (ACE_OS::strcmp (out_members[i].name, "my_enum") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (out_members[i].name.in(), "my_enum") == 0);
}
else
{
- ACE_ASSERT (ACE_OS::strcmp (out_members[i].name, members[i]) == 0);
+ ACE_ASSERT (ACE_OS::strcmp (out_members[i].name.in(), members[i]) == 0);
}
}
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/test.cpp b/TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/test.cpp
index 2155c1c4c36..bbb60bf359c 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/test.cpp
+++ b/TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/test.cpp
@@ -2,17 +2,19 @@
// $Id$
#include "Ptest.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Persistence_Test,
test,
"$Id$")
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Ptest ptest;
- int retval = ptest.init (argc,
- argv);
+ int retval = ptest.init (convert.get_argc(), convert.get_ASCII_argv());
if (retval == -1)
return 1;