diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2006-02-21 19:13:33 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2006-02-21 19:13:33 +0000 |
commit | bec928851f9b3238e973d9389bef53f45bba88db (patch) | |
tree | 84bcbddb00006ab81fd71060624fe27103f1eed3 /tests/Process_Manual_Event_Test.cpp | |
parent | 48135d72d4e3cfb9015c1839864083c1f0aa11cf (diff) | |
download | ATCD-bec928851f9b3238e973d9389bef53f45bba88db.tar.gz |
ChangelogTag: Tue Feb 21 11:35:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>Tue Feb 21 19:13:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'tests/Process_Manual_Event_Test.cpp')
-rw-r--r-- | tests/Process_Manual_Event_Test.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/tests/Process_Manual_Event_Test.cpp b/tests/Process_Manual_Event_Test.cpp index 35bb97f5f15..1de54720139 100644 --- a/tests/Process_Manual_Event_Test.cpp +++ b/tests/Process_Manual_Event_Test.cpp @@ -92,7 +92,7 @@ acquire_release (void) event_ping.signal (); if (event_pong.wait ()) - ACE_DEBUG ((LM_ERROR, + ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P) %p\n"), ACE_TEXT ("Failed acquiring pong"))); else @@ -109,12 +109,14 @@ acquire_release (void) wait.sec (wait.sec () + 3); // timeout in 3 secs if (event_pong.wait (&wait)) - if (errno != ETIME) - ACE_ERROR ((LM_ERROR, - ACE_TEXT ("(%P) %p, but expected ETIME\n"), - ACE_TEXT ("event_pong.wait()"))); + { + if (errno != ETIME) + ACE_ERROR ((LM_ERROR, + ACE_TEXT ("(%P) %p, but expected ETIME\n"), + ACE_TEXT ("event_pong.wait()"))); + } else - ACE_DEBUG ((LM_ERROR, + ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P) Acquired pong without release()\n"))); event_ping.signal (); // release waiting parent before timeout @@ -124,7 +126,7 @@ acquire_release (void) for (i = 0; i < iterations; ++i) { if (event_ping.wait ()) - ACE_DEBUG ((LM_ERROR, + ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P) %p\n"), ACE_TEXT ("Failed acquiring ping"))); else @@ -149,8 +151,8 @@ acquire_release (void) ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P) %p but should be ETIME\n"), ACE_TEXT ("Acquire pong"))); - else - ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P) Acquire pong timed out\n"))); + + ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P) Acquire pong timed out\n"))); } } } |