summaryrefslogtreecommitdiff
path: root/tests/Process_Strategy_Test.cpp
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-04-24 05:12:06 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-04-24 05:12:06 +0000
commit0756bceb855477f313f1eaca5d01f9e36bb3e36d (patch)
tree4a0e8ef5428d6e4478da2a46b566c84df67ef376 /tests/Process_Strategy_Test.cpp
parentad7f2d4ae4273710073d841fe5afccaf14e6718a (diff)
downloadATCD-fix_bug132_iter04_fin.tar.gz
This commit was manufactured by cvs2svn to create tagfix_bug132_iter04_fin
'fix_bug132_iter04_fin'.
Diffstat (limited to 'tests/Process_Strategy_Test.cpp')
-rw-r--r--tests/Process_Strategy_Test.cpp25
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 */
}