summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-12-02 16:18:28 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-12-02 16:18:28 +0000
commit4d121db239d06e780800ba5c9906b8fd1c500afb (patch)
treec83985e1c1c38af1fddc9a80c9669ff4c92d3eee
parent1d8afc440374796d8a1776e5d55286234e0e8ec9 (diff)
downloadATCD-4d121db239d06e780800ba5c9906b8fd1c500afb.tar.gz
moved ACE_END_TEST into child process case, so that it gets called
-rw-r--r--tests/SV_Shared_Memory_Test.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/SV_Shared_Memory_Test.cpp b/tests/SV_Shared_Memory_Test.cpp
index 5d6e7c8111d..6d73d96e4a4 100644
--- a/tests/SV_Shared_Memory_Test.cpp
+++ b/tests/SV_Shared_Memory_Test.cpp
@@ -95,7 +95,7 @@ child (char *shm)
#endif /* ACE_HAS_SYSV_IPC */
int
-main (int, char *argv[])
+main (int, char * /* argv */[])
{
ACE_START_TEST ("SV_Shared_Memory_Test");
@@ -108,9 +108,13 @@ main (int, char *argv[])
ACE_ERROR_RETURN ((LM_ERROR, "(%P) fork failed\n"), -1);
/* NOTREACHED */
case 0:
- // Child.
- ACE_LOG_MSG->sync ("SV_Shared_Memory_Test.cpp");
- return child (shm);
+ {
+ // Child.
+ ACE_LOG_MSG->sync ("SV_Shared_Memory_Test.cpp");
+ int retval = child (shm);
+ ACE_END_TEST;
+ return retval;
+ }
default:
return parent (shm);
}
@@ -118,7 +122,6 @@ main (int, char *argv[])
ACE_ERROR ((LM_ERROR,
"SYSV IPC is not supported on this platform\n"));
#endif /* ACE_HAS_SYSV_IPC */
- ACE_END_TEST;
return 0;
}