diff options
Diffstat (limited to 'tests/Process_Mutex_Test.cpp')
-rw-r--r-- | tests/Process_Mutex_Test.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/Process_Mutex_Test.cpp b/tests/Process_Mutex_Test.cpp index a7d75c4f75d..be450c39eb0 100644 --- a/tests/Process_Mutex_Test.cpp +++ b/tests/Process_Mutex_Test.cpp @@ -51,7 +51,7 @@ print_usage_and_die (void) static void parse_args (int argc, ACE_TCHAR *argv[]) { - ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("dcn:")); + ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("dcn:")); int c; @@ -89,8 +89,7 @@ acquire_release (void) ACE_OS::strncat (mutex_check, ACE_TEXT ("_checker"), MAXPATHLEN); // Grab the lock - int mutex_acq = mutex.acquire (); - ACE_ASSERT (mutex_acq == 0); + ACE_ASSERT (mutex.acquire () == 0); ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P) Mutex acquired %s\n"), @@ -121,8 +120,7 @@ acquire_release (void) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P) Releasing the mutex %s\n"), mutex_name)); - int mutex_release = mutex.release (); - ACE_ASSERT (mutex_release == 0); + ACE_ASSERT (mutex.release () == 0); } } @@ -191,8 +189,7 @@ run_main (int argc, ACE_TCHAR *argv[]) { ACE_exitcode child_status; // Wait for the child processes we created to exit. - int wait_result = children[i].wait (&child_status); - ACE_ASSERT (wait_result != -1); + ACE_ASSERT (children[i].wait (&child_status) != -1); if (child_status == 0) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Child %d finished ok\n"), |