You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jo...@apache.org on 2004/11/19 17:25:09 UTC
svn commit: r105827 - apr/apr/trunk/test
Author: jorton
Date: Fri Nov 19 08:25:08 2004
New Revision: 105827
Modified:
apr/apr/trunk/test/testshm.c
Log:
* test/testshm.c
(test_named): remove shm segment for SHARED_FILENAME before creating it.
(test_named_remove): ditto.
Submitted by: Garrett Rooney
Modified: apr/apr/trunk/test/testshm.c
==============================================================================
--- apr/apr/trunk/test/testshm.c (original)
+++ apr/apr/trunk/test/testshm.c Fri Nov 19 08:25:08 2004
@@ -166,6 +166,8 @@
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) {
@@ -219,6 +221,8 @@
{
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);