summaryrefslogtreecommitdiff
path: root/tests/SPIPE_Test.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1996-11-18 03:56:19 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1996-11-18 03:56:19 +0000
commit8825d290d8873c6ee96e27dcba1f1c8bf59d2236 (patch)
treef8913a7ba038ec752e3d98e49b18950a374a85a9 /tests/SPIPE_Test.cpp
parente1b089abb1df9b1c7a5f6eabf1100b6c21ec1fe8 (diff)
downloadATCD-8825d290d8873c6ee96e27dcba1f1c8bf59d2236.tar.gz
ywhoopie!!
More new stuff, more things will break!! I have no idea about this file. Heck, I am not even Doug!
Diffstat (limited to 'tests/SPIPE_Test.cpp')
-rw-r--r--tests/SPIPE_Test.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/tests/SPIPE_Test.cpp b/tests/SPIPE_Test.cpp
index 2e8960ce829..3ee7b607508 100644
--- a/tests/SPIPE_Test.cpp
+++ b/tests/SPIPE_Test.cpp
@@ -1,6 +1,6 @@
-// ============================================================================
// $Id$
+// ============================================================================
//
// = LIBRARY
// tests
@@ -31,7 +31,7 @@
#include "test_config.h"
// pipe name to use
-static char *pipe_name = "acepipe";
+static const char *PIPE_NAME = "ace_pipe_name";
// Global thread manager.
static ACE_Thread_Manager thr_mgr;
@@ -43,7 +43,7 @@ client (void *)
ACE_Thread_Control thread_control (&thr_mgr); // Insert thread into thr_mgr
ACE_NEW_THREAD;
#endif
- char *rendezvous = "ace_pipe_name";
+ const char *rendezvous = PIPE_NAME;
ACE_SPIPE_Stream cli_stream;
ACE_SPIPE_Connector con;
@@ -78,9 +78,9 @@ server (void *)
int n;
char t = 'a';
- char *rendezvous = "ace_pipe_name";
+ const char *rendezvous = PIPE_NAME;
- // Initialize named pipe listener
+ // Initialize named pipe listener.
if (acceptor.open (ACE_SPIPE_Addr (rendezvous)) == -1)
ACE_ERROR ((LM_ERROR, "%p\n", "open"));
@@ -138,9 +138,12 @@ main (int, char *argv[])
{
ACE_START_TEST ("SPIPE_Test.cpp");
+#if defined (ACE_HAS_STREAM_PIPES) || defined (ACE_WIN32)
spawn ();
-
+#else
+ ACE_ERROR ((LM_ERROR,
+ "SPIPE is not supported on this platform\n"));
+#endif /* defined (ACE_HAS_STREAM_PIPES) || defined (ACE_WIN32) */
ACE_END_TEST;
return 0;
}
-