summaryrefslogtreecommitdiff
path: root/tests/SPIPE_Test.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-07-28 13:12:30 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-07-28 13:12:30 +0000
commitf10b0b1d89966aeab1de25c6cb22a45b6680aa6b (patch)
tree971b550a37b7f93857ea09482158e71df9c0fa97 /tests/SPIPE_Test.cpp
parent96cbac53c883fe4938582c58ebba7f52448b0c89 (diff)
downloadATCD-f10b0b1d89966aeab1de25c6cb22a45b6680aa6b.tar.gz
*** empty log message ***
Diffstat (limited to 'tests/SPIPE_Test.cpp')
-rw-r--r--tests/SPIPE_Test.cpp23
1 files changed, 6 insertions, 17 deletions
diff --git a/tests/SPIPE_Test.cpp b/tests/SPIPE_Test.cpp
index a08521d4f92..720cf3e52c5 100644
--- a/tests/SPIPE_Test.cpp
+++ b/tests/SPIPE_Test.cpp
@@ -101,10 +101,13 @@ server (void *)
return 0;
}
-static void
-spawn (void)
+int
+main (int, char *[])
{
-#if !defined (ACE_WIN32) && !defined (VXWORKS)
+ ACE_START_TEST ("SPIPE_Test");
+
+#if defined (ACE_HAS_STREAM_PIPES)
+#if !defined (ACE_LACKS_EXEC)
switch (ACE_OS::fork ())
{
case -1:
@@ -127,20 +130,6 @@ spawn (void)
ACE_ERROR ((LM_ERROR, "%p\n%a", "thread create failed"));
thr_mgr.wait ();
#else
- ACE_ERROR ((LM_ERROR, "only one thread may be run in a process on this platform\n%a", 1));
-#endif /* ACE_HAS_THREADS */
-}
-
-int
-main (int, char *[])
-{
- ACE_START_TEST ("SPIPE_Test");
-
-#if defined (ACE_HAS_STREAM_PIPES) || defined (ACE_WIN32)
- spawn ();
-#else
- if (spawn) /* null */; // To avoid compiler about unused function spawn ().
-
ACE_DEBUG ((LM_DEBUG,
"SPIPE is not supported on this platform\n"));
#endif /* defined (ACE_HAS_STREAM_PIPES) || defined (ACE_WIN32) || defined (VXWORKS) */