diff options
Diffstat (limited to 'tests/Process_Strategy_Test.cpp')
-rw-r--r-- | tests/Process_Strategy_Test.cpp | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/tests/Process_Strategy_Test.cpp b/tests/Process_Strategy_Test.cpp index 29378957c55..947d2de1fb9 100644 --- a/tests/Process_Strategy_Test.cpp +++ b/tests/Process_Strategy_Test.cpp @@ -108,6 +108,14 @@ connection_completed (void) ACE_Reactor::instance()->wakeup_all_threads (); } +// Have all connections been serviced? + +static int +done (void) +{ + return connections == ACE_MAX_ITERATIONS + 1; +} + // Constructor Process_Strategy::Process_Strategy (size_t n_processes, ACE_Event_Handler *acceptor, @@ -492,8 +500,6 @@ Counting_Service::open (void *) return 0; } -#if !defined (ACE_LACKS_FORK) || defined (ACE_HAS_THREADS) - // Execute the client tests. static void * @@ -611,14 +617,6 @@ client (void *arg) // Performs the server activities. -// Have all connections been serviced? - -static int -done (void) -{ - return connections == ACE_MAX_ITERATIONS + 1; -} - static void * server (void *) { @@ -632,8 +630,6 @@ server (void *) return 0; } -#endif /* !ACE_LACKS_FORK || ACE_HAS_THREADS */ - int main (int argc, ACE_TCHAR *argv[]) { @@ -709,9 +705,10 @@ main (int argc, ACE_TCHAR *argv[]) // Wait for the threads to exit. ACE_Thread_Manager::instance ()->wait (); #else - ACE_ERROR ((LM_INFO, + ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P|%t) only one thread may be run ") - ACE_TEXT ("in a process on this platform\n"))); + ACE_TEXT ("in a process on this platform\n%a"), + 1)); #endif /* ACE_HAS_THREADS */ } |