summaryrefslogtreecommitdiff
path: root/tests/SV_Shared_Memory_Test.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-26 16:48:41 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-26 16:48:41 +0000
commit25e365a4b8b626d53abad2c7d8e530f3ffc010cb (patch)
treef6060c4cf5fa0c9fbe9fa299764596831f169a6d /tests/SV_Shared_Memory_Test.cpp
parent3d0dba3155acca36150ec41f991beedfed50f095 (diff)
downloadATCD-25e365a4b8b626d53abad2c7d8e530f3ffc010cb.tar.gz
don't try to run this test if ACE_LACKS_FORK, because it uses ACE_OS::fork ().
Diffstat (limited to 'tests/SV_Shared_Memory_Test.cpp')
-rw-r--r--tests/SV_Shared_Memory_Test.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/SV_Shared_Memory_Test.cpp b/tests/SV_Shared_Memory_Test.cpp
index 973f24a72c3..772510a7bd1 100644
--- a/tests/SV_Shared_Memory_Test.cpp
+++ b/tests/SV_Shared_Memory_Test.cpp
@@ -131,11 +131,10 @@ main (int, char *[])
{
ACE_START_TEST ("SV_Shared_Memory_Test");
-#if defined (ACE_HAS_SYSV_IPC)
+#if defined (ACE_HAS_SYSV_IPC) && !defined (ACE_LACKS_FORK)
char *shm = (char *) myallocator ().malloc (27);
switch (ACE_OS::fork ("SV_Shared_Memory_Test.cpp"))
- // switch (1)
{
case -1:
ACE_ERROR_RETURN ((LM_ERROR, "(%P) fork failed\n"), -1);
@@ -149,7 +148,7 @@ main (int, char *[])
}
#else
ACE_ERROR ((LM_ERROR,
- "SYSV IPC is not supported on this platform\n"));
+ "SYSV IPC and fork are not supported on this platform\n"));
#endif /* ACE_HAS_SYSV_IPC */
ACE_END_TEST;
return 0;