diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-09-16 21:19:02 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-09-16 21:19:02 +0000 |
commit | 40fdc8a404e75ab03b68cc62e9987cf208fd8c30 (patch) | |
tree | 37d9c4d3abe4aefd8a34ed797883dd2cd4862ca7 /tests/FIFO_Test.cpp | |
parent | c254b281f1b9a4ca19dd0c3ee73a0654a7718909 (diff) | |
download | ATCD-typecode-overhaul.tar.gz |
This commit was manufactured by cvs2svn to create branchtypecode-overhaul
'typecode-overhaul'.
Diffstat (limited to 'tests/FIFO_Test.cpp')
-rw-r--r-- | tests/FIFO_Test.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/FIFO_Test.cpp b/tests/FIFO_Test.cpp index 378a1d188db..f8f69e356d5 100644 --- a/tests/FIFO_Test.cpp +++ b/tests/FIFO_Test.cpp @@ -36,7 +36,8 @@ ACE_RCSID(tests, SOCK_Test, "$Id$") #if !defined (ACE_WIN32) -static const char ACE_ALPHABET[] = "abcdefghijklmnopqrstuvwxyz"; +static const ACE_TCHAR ACE_ALPHABET[] = + ACE_TEXT ("abcdefghijklmnopqrstuvwxyz"); // This length is used for the "big buffer" send/receive. static const size_t big_size = (BUFSIZ * 4); @@ -115,9 +116,9 @@ server (void *arg) // On AIX, select() always seems to select a fifo handle as a normal file, // always readable. Just wait a second... -# if defined (AIX) || defined (HPUX) +# if defined (AIX) ACE_OS::sleep (1); -# endif /* AIX || HPUX */ +# endif /* AIX */ // Read the things the client is sending; alphabet, huge overflow, then // alphabet. @@ -193,7 +194,7 @@ test_fifo_msg (void) // Reader side opens first - it may fail if fifo not supported on this // platform. ACE_TCHAR fifo_path[MAXPATHLEN]; - if (ACE::get_temp_dir (fifo_path, MAXPATHLEN) == -1) + if (ACE_Lib_Find::get_temp_dir (fifo_path, MAXPATHLEN) == -1) ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("%p\n"), ACE_TEXT ("get_temp_dir")), 1); ACE_OS::strcat (fifo_path, ACE_TEXT ("FIFO_Test")); @@ -224,7 +225,7 @@ test_fifo_msg (void) int status = 0; // Test status; innocent until proven guilty. #if !defined (ACE_LACKS_FORK) - switch (ACE_OS::fork (ACE_TEXT ("child"))) + switch (ACE_OS::fork ("child")) { case -1: ACE_ERROR ((LM_ERROR, ACE_TEXT ("%p\n"), ACE_TEXT ("fork failed"))); |