diff options
Diffstat (limited to 'TAO/tests/Exposed_Policies')
-rw-r--r-- | TAO/tests/Exposed_Policies/Exposed_Policies.mpc | 1 | ||||
-rw-r--r-- | TAO/tests/Exposed_Policies/Policy_Tester.cpp | 8 | ||||
-rw-r--r-- | TAO/tests/Exposed_Policies/Policy_Verifier.cpp | 4 | ||||
-rw-r--r-- | TAO/tests/Exposed_Policies/RT_Properties.cpp | 2 | ||||
-rw-r--r-- | TAO/tests/Exposed_Policies/client.cpp | 7 | ||||
-rw-r--r-- | TAO/tests/Exposed_Policies/server.cpp | 7 |
6 files changed, 18 insertions, 11 deletions
diff --git a/TAO/tests/Exposed_Policies/Exposed_Policies.mpc b/TAO/tests/Exposed_Policies/Exposed_Policies.mpc index 6e9c5283fe0..d2301e822c1 100644 --- a/TAO/tests/Exposed_Policies/Exposed_Policies.mpc +++ b/TAO/tests/Exposed_Policies/Exposed_Policies.mpc @@ -2,6 +2,7 @@ // $Id$ project(*Server): strategies, rt_server { + exename = server Source_Files { Policy_Tester.cpp Policy_Verifier.cpp diff --git a/TAO/tests/Exposed_Policies/Policy_Tester.cpp b/TAO/tests/Exposed_Policies/Policy_Tester.cpp index 217eacdae41..8918ae6cc86 100644 --- a/TAO/tests/Exposed_Policies/Policy_Tester.cpp +++ b/TAO/tests/Exposed_Policies/Policy_Tester.cpp @@ -69,7 +69,7 @@ Policy_Tester::init (int argc, // Here we parse the command line paramether passed // to the application. - ACE_Arg_Shifter arg_shifter (argc, argv); + ACE_TArg_Shifter<char> arg_shifter (argc, argv); while (arg_shifter.is_anything_left ()) { @@ -138,7 +138,7 @@ Policy_Tester::check_reference (CORBA::Object_ptr object, { if (CORBA::is_nil (object)) { - ACE_DEBUG ((LM_DEBUG, ACE_TEXT (msg))); + ACE_DEBUG ((LM_DEBUG, ACE_TEXT_TO_TCHAR_IN (msg))); return 0; } return 1; @@ -233,7 +233,7 @@ Policy_Tester::create_objects (ACE_ENV_SINGLE_ARG_DECL) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Activated as <%s>\n"), ior.in ())); - FILE *output_file = ACE_OS::fopen (this->rt_poa_properties_->ior_source (), "w"); + FILE *output_file = ACE_OS::fopen (this->rt_poa_properties_->ior_source (), ACE_TEXT("w")); if (output_file == 0) ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("Cannot open output file for writing IOR: %s"), @@ -278,7 +278,7 @@ Policy_Tester::create_objects (ACE_ENV_SINGLE_ARG_DECL) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Activated as <%s>\n"), o_ior.in ())); - output_file = ACE_OS::fopen (this->rt_object_properties_->ior_source (), "w"); + output_file = ACE_OS::fopen (this->rt_object_properties_->ior_source (), ACE_TEXT("w")); if (output_file == 0) ACE_ERROR_RETURN ((LM_ERROR, diff --git a/TAO/tests/Exposed_Policies/Policy_Verifier.cpp b/TAO/tests/Exposed_Policies/Policy_Verifier.cpp index 4541f43613c..280217d99a9 100644 --- a/TAO/tests/Exposed_Policies/Policy_Verifier.cpp +++ b/TAO/tests/Exposed_Policies/Policy_Verifier.cpp @@ -26,7 +26,7 @@ Policy_Verifier::init (int argc, CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (false); - ACE_Arg_Shifter arg_shifter (argc, argv); + ACE_TArg_Shifter<char> arg_shifter (argc, argv); while (arg_shifter.is_anything_left ()) { @@ -260,7 +260,7 @@ Policy_Verifier::check_reference (CORBA::Object_ptr object, { if (CORBA::is_nil (object)) { - ACE_DEBUG ((LM_DEBUG, ACE_TEXT (msg))); + ACE_DEBUG ((LM_DEBUG, ACE_TEXT_TO_TCHAR_IN (msg))); return 0; } return 1; diff --git a/TAO/tests/Exposed_Policies/RT_Properties.cpp b/TAO/tests/Exposed_Policies/RT_Properties.cpp index 4a23c92f0f5..fd4523b3b31 100644 --- a/TAO/tests/Exposed_Policies/RT_Properties.cpp +++ b/TAO/tests/Exposed_Policies/RT_Properties.cpp @@ -24,7 +24,7 @@ RT_Properties * RT_Properties::read_from (const char *file_name ACE_ENV_ARG_DECL) { - FILE *fp = ACE_OS::fopen (file_name, "r"); + FILE *fp = ACE_OS::fopen (file_name, ACE_TEXT("r")); RT_Properties *rt_properties; diff --git a/TAO/tests/Exposed_Policies/client.cpp b/TAO/tests/Exposed_Policies/client.cpp index 80bc23f24f3..b8df1e7a00b 100644 --- a/TAO/tests/Exposed_Policies/client.cpp +++ b/TAO/tests/Exposed_Policies/client.cpp @@ -8,12 +8,15 @@ #include "Policy_Verifier.h" #include "tao/Strategies/advanced_resource.h" +#include "ace/Argv_Type_Converter.h" ACE_RCSID(tao, client, "$Id$") int -main (int argc, char *argv[]) +ACE_TMAIN (int argc, ACE_TCHAR *argv[]) { + ACE_Argv_Type_Converter convert (argc, argv); + int status = 0; ACE_DECLARE_NEW_CORBA_ENV; @@ -21,7 +24,7 @@ main (int argc, char *argv[]) { Policy_Verifier policy_verifier; - bool retval = policy_verifier.init (argc, argv ACE_ENV_ARG_PARAMETER); + bool retval = policy_verifier.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; if (retval) diff --git a/TAO/tests/Exposed_Policies/server.cpp b/TAO/tests/Exposed_Policies/server.cpp index ecc7d20d022..c8582a8fb27 100644 --- a/TAO/tests/Exposed_Policies/server.cpp +++ b/TAO/tests/Exposed_Policies/server.cpp @@ -14,20 +14,23 @@ #include "Policy_Tester.h" #include "tao/Strategies/advanced_resource.h" +#include "ace/Argv_Type_Converter.h" ACE_RCSID(tao, server, "$Id$") int -main (int argc, char *argv[]) +ACE_TMAIN (int argc, ACE_TCHAR *argv[]) { + ACE_Argv_Type_Converter convert (argc, argv); + ACE_DECLARE_NEW_CORBA_ENV; ACE_TRY { Policy_Tester policy_tester; - int result = policy_tester.init (argc, argv ACE_ENV_ARG_PARAMETER); + int result = policy_tester.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; if (result != 0) |