summaryrefslogtreecommitdiff
path: root/tests/Process_Manager_Test.cpp
diff options
context:
space:
mode:
authorbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-02-28 19:41:17 +0000
committerbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-02-28 19:41:17 +0000
commit0527575ce2c1ee464d859fd48caaa0423340580e (patch)
tree520e9727457223d12bb10a84244636523f7b4a40 /tests/Process_Manager_Test.cpp
parentaa1ea58396cc4cbdad66e8ebea4a3b3806dc135f (diff)
downloadATCD-0527575ce2c1ee464d859fd48caaa0423340580e.tar.gz
ChangeLogTag:Mon Feb 28 09:20:27 2000 Darrell Brunsch <brunsch@uci.edu>
Diffstat (limited to 'tests/Process_Manager_Test.cpp')
-rw-r--r--tests/Process_Manager_Test.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/Process_Manager_Test.cpp b/tests/Process_Manager_Test.cpp
index 259ab0f9d0d..cb2ad773ddb 100644
--- a/tests/Process_Manager_Test.cpp
+++ b/tests/Process_Manager_Test.cpp
@@ -31,7 +31,7 @@
ACE_RCSID(tests, Process_Manager_Test, "Process_Manager_Test.cpp,v 4.11 1999/09/02 04:36:30 schmidt Exp")
-#if !defined (ACE_LACKS_FORK) && defined (ACE_HAS_THREADS)
+#if (!defined (ACE_LACKS_FORK) || defined (ACE_WIN32)) && defined (ACE_HAS_THREADS)
static u_int debug_test = 0;
@@ -78,9 +78,9 @@ spawn_child (const char *argv0,
{
ACE_Process_Options opts;
- opts.command_line ("%s %s %d",
- argv0,
- debug_test ? "-d" : "",
+ opts.command_line (ACE_TEXT("%s %s %d"),
+ ACE_WIDE_STRING(argv0),
+ debug_test ? ACE_TEXT ("-d") : ACE_TEXT (""),
sleep_time);
pid_t result = mgr.spawn (opts);
@@ -260,7 +260,7 @@ main (int argc, ASYS_TCHAR *argv[])
return result;
}
-#else
+#else /* (!ACE_LACKS_FORK || ACE_WIN32) && ACE_HAS_THREADS */
int
main (int, ASYS_TCHAR *[])
{
@@ -270,4 +270,4 @@ main (int, ASYS_TCHAR *[])
ACE_END_TEST;
return 0;
}
-#endif /* !ACE_LACKS_FORK && ACE_HAS_THREADS */
+#endif /* (!ACE_LACKS_FORK || ACE_WIN32) && ACE_HAS_THREADS */