summaryrefslogtreecommitdiff
path: root/tests/Process_Mutex_Test.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2004-08-20 13:23:46 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2004-08-20 13:23:46 +0000
commitec483df563cc6a36226edf79f3d525cc66180fbf (patch)
tree2fe1ec6fffb8b709af1e4da6e5d61d18b69cba94 /tests/Process_Mutex_Test.cpp
parenta2509b4c705e558e80d6b001dd501f1d64af1731 (diff)
downloadATCD-ec483df563cc6a36226edf79f3d525cc66180fbf.tar.gz
ChangeLogTag: Fri Aug 20 14:26:00 UTC 2004 Martin Corino <mcorino@remedy.nl>
Diffstat (limited to 'tests/Process_Mutex_Test.cpp')
-rw-r--r--tests/Process_Mutex_Test.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/Process_Mutex_Test.cpp b/tests/Process_Mutex_Test.cpp
index 98ae4330f82..900d44e2fcb 100644
--- a/tests/Process_Mutex_Test.cpp
+++ b/tests/Process_Mutex_Test.cpp
@@ -132,7 +132,11 @@ run_main (int argc, ACE_TCHAR *argv[])
// Child process code.
if (child_process)
{
- ACE_APPEND_LOG (ACE_TEXT("Process_Mutex_Test-children"));
+ ACE_TCHAR lognm[MAXPATHLEN];
+ int mypid (ACE_OS::getpid ());
+ ACE_OS::sprintf(lognm, ACE_TEXT ("Process_Mutex_Test-child-%d"), mypid);
+
+ ACE_START_TEST (lognm);
acquire_release ();
ACE_END_LOG;
}
@@ -147,7 +151,6 @@ run_main (int argc, ACE_TCHAR *argv[])
// Process_Mutex shall control the destruction of mutex better.
ACE_Process_Mutex mutex( mutex_name );
# endif
- ACE_INIT_LOG (ACE_TEXT("Process_Mutex_Test-children"));
ACE_Process_Options options;
if (release_mutex == 0)