diff options
-rw-r--r-- | test/testshm.c | 4 |
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) { |