diff options
author | mhengstmengel <mhengstmengel@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2013-10-31 10:44:50 +0000 |
---|---|---|
committer | mhengstmengel <mhengstmengel@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2013-10-31 10:44:50 +0000 |
commit | d728fbc93eaa65c11b0de18275d682bc837522fc (patch) | |
tree | 6653699d6c47d69873a64a53598bed32f054db0a /ACE/tests/Process_Manual_Event_Test.cpp | |
parent | 41087c3d7aa7f359ab11b9be07a9cad48d41456a (diff) | |
download | ATCD-d728fbc93eaa65c11b0de18275d682bc837522fc.tar.gz |
Changes caused by changes in test framework for Android port
Diffstat (limited to 'ACE/tests/Process_Manual_Event_Test.cpp')
-rw-r--r-- | ACE/tests/Process_Manual_Event_Test.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/ACE/tests/Process_Manual_Event_Test.cpp b/ACE/tests/Process_Manual_Event_Test.cpp index 389fc91aa8c..ab2c3024b62 100644 --- a/ACE/tests/Process_Manual_Event_Test.cpp +++ b/ACE/tests/Process_Manual_Event_Test.cpp @@ -204,22 +204,28 @@ run_main (int argc, ACE_TCHAR *argv[]) // FUZZ: enable check_for_lack_ACE_OS # endif /* AIX */ + ACE_TCHAR const * argv_0 = argc > 0 ? argv[0] : ACE_TEXT ("Process_Manual_Event_Test"); + #if defined (ACE_WIN32) const ACE_TCHAR *cmdline_format = ACE_TEXT("\"%s\" -c -i %d"); #elif !defined (ACE_USES_WCHAR) -const ACE_TCHAR *cmdline_format = ACE_TEXT (".") ACE_DIRECTORY_SEPARATOR_STR ACE_TEXT("%s -c -i %d"); +const ACE_TCHAR *cmdline_format = argc > 0 ? ACE_TEXT ("%s -c -i %d") : (ACE_TEXT (".") ACE_DIRECTORY_SEPARATOR_STR ACE_TEXT("%s -c -i %d")); #else -const ACE_TCHAR *cmdline_format = ACE_TEXT (".") ACE_DIRECTORY_SEPARATOR_STR ACE_TEXT("%ls -c -i %d"); +const ACE_TCHAR *cmdline_format = argc > 0 ? ACE_TEXT ("%s -c -i %d") : (ACE_TEXT (".") ACE_DIRECTORY_SEPARATOR_STR ACE_TEXT("%ls -c -i %d")); #endif ACE_Process_Options options; options.command_line (cmdline_format, - argc > 0 ? argv[0] : ACE_TEXT ("Process_Manual_Event_Test"), + argv_0, iterations); // Spawn a child process that will contend for the // lock. ACE_Process child; + ACE_DEBUG ((LM_DEBUG, ACE_TEXT("Spawning <%s> <%s>\n"), + options.process_name(), + options.command_line_buf ())); + // Spawn the child process. pid_t result = child.spawn (options); if (result != ACE_INVALID_PID) |