summaryrefslogtreecommitdiff
path: root/tests/Pipe_Test.cpp
diff options
context:
space:
mode:
authorharrison <harrison@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-05-11 22:32:24 +0000
committerharrison <harrison@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-05-11 22:32:24 +0000
commit50637f4a203319c24324e50b4302cd9a1d9e330d (patch)
tree5bddf90963be85efd56a75e724b1e5708e38c76f /tests/Pipe_Test.cpp
parent80fab7dd2f1c2af777fc97d0c71b267e41fed1cc (diff)
downloadATCD-50637f4a203319c24324e50b4302cd9a1d9e330d.tar.gz
These files work with the new ACE_Process.
Did a make depend on the Makefile to update Containers dependencies etc.
Diffstat (limited to 'tests/Pipe_Test.cpp')
-rw-r--r--tests/Pipe_Test.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/tests/Pipe_Test.cpp b/tests/Pipe_Test.cpp
index 0073b5ff7c6..2b3b68eb3bf 100644
--- a/tests/Pipe_Test.cpp
+++ b/tests/Pipe_Test.cpp
@@ -95,21 +95,18 @@ main (int argc, char *argv[])
{
ACE_START_TEST ("Pipe_Test");
ACE_INIT_LOG ("Pipe_Test-children");
-
- char *s_argv[4];
- s_argv[0] = "Pipe_Test" ACE_PLATFORM_EXE_SUFFIX;
- s_argv[1] = "-c"; // child/slave process
- if (close_pipe == 0)
- s_argv[2] = "-d";
+
+ ACE_Process_Options options;
+ if (close_pipe == 0)
+ options.command_line ("Pipe_Test" ACE_PLATFORM_EXE_SUFFIX " -c -d");
else
- s_argv[2] = 0;
- s_argv[3] = 0;
+ options.command_line ("Pipe_Test" ACE_PLATFORM_EXE_SUFFIX " -c");
for (int i = 0; i < ::iterations; i++)
{
ACE_Process server;
- ACE_ASSERT (server.start (s_argv) != -1);
+ ACE_ASSERT (server.start (options) != -1);
ACE_DEBUG ((LM_DEBUG, "Server forked with pid = %d.\n", server.getpid ()));