summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1996-12-02 20:47:57 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1996-12-02 20:47:57 +0000
commitfd5cd44306e4f744197510fac1e9d0ff359a2c5c (patch)
treea2484130736f0034e7b9716237c502fbbb35416e /tests
parent8480cf1b941187e0d5fa2fd89f31d31fb1ca74aa (diff)
downloadATCD-fd5cd44306e4f744197510fac1e9d0ff359a2c5c.tar.gz
foo
Diffstat (limited to 'tests')
-rw-r--r--tests/Naming_Test.cpp5
-rw-r--r--tests/SV_Shared_Memory_Test.cpp15
2 files changed, 10 insertions, 10 deletions
diff --git a/tests/Naming_Test.cpp b/tests/Naming_Test.cpp
index fbfbac23a8a..fcd948a2eb1 100644
--- a/tests/Naming_Test.cpp
+++ b/tests/Naming_Test.cpp
@@ -162,8 +162,9 @@ main (int argc, char *argv[])
// since we don't care if the file doesn't exist.
ACE_OS::unlink (temp_file);
+ // Close things down and free up the semaphores.
+ delete ns_context;
+
ACE_END_TEST;
return 0;
}
-
-
diff --git a/tests/SV_Shared_Memory_Test.cpp b/tests/SV_Shared_Memory_Test.cpp
index 6d73d96e4a4..594918ef216 100644
--- a/tests/SV_Shared_Memory_Test.cpp
+++ b/tests/SV_Shared_Memory_Test.cpp
@@ -108,20 +108,19 @@ 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");
- int retval = child (shm);
- ACE_END_TEST;
- return retval;
- }
+ // Child.
+ ACE_LOG_MSG->sync ("SV_Shared_Memory_Test.cpp");
+ child (shm);
+ break;
default:
- return parent (shm);
+ parent (shm);
+ break;
}
#else
ACE_ERROR ((LM_ERROR,
"SYSV IPC is not supported on this platform\n"));
#endif /* ACE_HAS_SYSV_IPC */
+ ACE_END_TEST;
return 0;
}