diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-04-24 14:27:52 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-04-24 14:27:52 +0000 |
commit | bbd66d14cf82b5075d73c7f8fabfb2fe2580f0d7 (patch) | |
tree | 553f31144b31525e98b1a7979a58d026265eeabb | |
parent | 2a284af68bcee12867d19694514e0e161d590588 (diff) | |
download | ATCD-bbd66d14cf82b5075d73c7f8fabfb2fe2580f0d7.tar.gz |
Made it UNICODE safe.
-rw-r--r-- | tests/Env_Value_Test.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/Env_Value_Test.cpp b/tests/Env_Value_Test.cpp index 7152597e2a6..c95560ebddc 100644 --- a/tests/Env_Value_Test.cpp +++ b/tests/Env_Value_Test.cpp @@ -24,13 +24,13 @@ int // ACE_HAS_NONSTATIC_OBJECT_MANAGER only allows main to have two // arguments. And on VxWorks, which uses ACE_HAS_NONSTATIC_OBJECT_MANAGER, // we can't use spawn because it doesn't have fork (). -main (int argc, char *[]) +main (int argc, LPTSTR []) { ACE_UNUSED_ARG (argc); ACE_OS::putenv("TEST_VALUE_POSITIVE=10.2"); ACE_OS::putenv("TEST_VALUE_NEGATIVE=-10.2"); #else /* ! ACE_HAS_NONSTATIC_OBJECT_MANAGER */ - main (int argc, char *[], char* envp[]) +main (int argc, LPTSTR [], LPTSTR envp[]) { if (argc == 1) { @@ -38,10 +38,12 @@ main (int argc, char *[]) ACE_Process_Options options (1); options.setenv (envp); - options.command_line ("Env_Value_Test run_as_test"); + options.command_line (TEXT ("Env_Value_Test run_as_test")); - options.setenv("TEST_VALUE_POSITIVE", "%s", "10.2"); - options.setenv("TEST_VALUE_NEGATIVE", "%s", "-10.2"); + options.setenv(TEXT ("TEST_VALUE_POSITIVE"), TEXT ("%s"), + TEXT ("10.2")); + options.setenv(TEXT ("TEST_VALUE_NEGATIVE"), TEXT ("%s"), + TEXT ("-10.2")); ACE_Process p; pid_t result = p.spawn (options); |