From d680cedcfec814c87cb0ce55355fcd6af769274c Mon Sep 17 00:00:00 2001 From: elliott_c Date: Mon, 16 May 2005 14:01:12 +0000 Subject: ChangeLogTag: Mon May 16 09:01:07 2005 Chad Elliott --- tests/Pipe_Test.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'tests/Pipe_Test.cpp') diff --git a/tests/Pipe_Test.cpp b/tests/Pipe_Test.cpp index 264c0331755..f1d7792eb80 100644 --- a/tests/Pipe_Test.cpp +++ b/tests/Pipe_Test.cpp @@ -103,14 +103,9 @@ run_main (int argc, ACE_TCHAR *argv[]) ACE_INIT_LOG (ACE_TEXT("Pipe_Test-children")); ACE_Process_Options options; - if (close_pipe == 0) - options.command_line (ACE_TEXT (".") ACE_DIRECTORY_SEPARATOR_STR - ACE_TEXT ("Pipe_Test") ACE_PLATFORM_EXE_SUFFIX - ACE_TEXT (" -c -d")); - else - options.command_line (ACE_TEXT (".") ACE_DIRECTORY_SEPARATOR_STR - ACE_TEXT ("Pipe_Test") ACE_PLATFORM_EXE_SUFFIX - ACE_TEXT (" -c")); + options.command_line (ACE_TEXT ("%s -c%s"), + argv[0], + close_pipe == 0 ? " -d" : ""); ACE_exitcode status = 0; -- cgit v1.2.1