summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2004-11-19 16:25:08 +0000
committerjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2004-11-19 16:25:08 +0000
commitff3e092db5d39838f7aa5aa4db875de43d3572ac (patch)
tree7e56fd3bc7ff44f28511a417b2f1b09c7ed231e0 /test
parent6924fec6ac7d067b18db58e31c61ab7344c7a3ab (diff)
downloadlibapr-ff3e092db5d39838f7aa5aa4db875de43d3572ac.tar.gz
* test/testshm.c
(test_named): remove shm segment for SHARED_FILENAME before creating it. (test_named_remove): ditto. Submitted by: Garrett Rooney git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@105827 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r--test/testshm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/testshm.c b/test/testshm.c
index 7f3fe6556..189f62440 100644
--- a/test/testshm.c
+++ b/test/testshm.c
@@ -166,6 +166,8 @@ static void test_named(abts_case *tc, void *data)
apr_exit_why_e why;
const char *args[4];
+ apr_shm_remove(SHARED_FILENAME, p);
+
rv = apr_shm_create(&shm, SHARED_SIZE, SHARED_FILENAME, p);
APR_ASSERT_SUCCESS(tc, "Error allocating shared memory block", rv);
if (rv != APR_SUCCESS) {
@@ -220,6 +222,8 @@ static void test_named_remove(abts_case *tc, void *data)
apr_status_t rv;
apr_shm_t *shm;
+ apr_shm_remove(SHARED_FILENAME, p);
+
rv = apr_shm_create(&shm, SHARED_SIZE, SHARED_FILENAME, p);
APR_ASSERT_SUCCESS(tc, "Error allocating shared memory block", rv);
if (rv != APR_SUCCESS) {