apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r105827 - apr/apr/trunk/test
Date Fri, 19 Nov 2004 16:25:09 GMT
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);

Mime
View raw message