Search
j0ke.net Open Build Service
>
Projects
>
Apache
>
libapr1
> apr-1.3.0-testshm-apr_shm_remove.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File apr-1.3.0-testshm-apr_shm_remove.patch of Package libapr1 (Revision 2)
Currently displaying revision
2
,
show latest
work around failure in testshm which seems to be logic error in the test program see also here: http://www.mail-archive.com/dev@apr.apache.org/msg20224.html poeml, Sun Jun 15 17:02:32 CEST 2008 Index: apr-1.3.0/test/testshm.c =================================================================== --- apr-1.3.0.orig/test/testshm.c 2007-11-06 04:58:22.000000000 +0100 +++ apr-1.3.0/test/testshm.c 2008-06-15 15:30:24.066001000 +0200 @@ -250,8 +250,9 @@ static void test_named_remove(abts_case APR_ASSERT_SUCCESS(tc, "Error destroying shared memory block", rv); } - rv = apr_shm_destroy(shm); - APR_ASSERT_SUCCESS(tc, "Error destroying shared memory block", rv); + /* this fails, because it _is_ already removed (see above). Skip this step. */ + /* rv = apr_shm_destroy(shm); */ + /* APR_ASSERT_SUCCESS(tc, "Error destroying shared memory block", rv); */ /* Now ensure no named resource remains which we may attach to */ rv = apr_shm_attach(&shm, SHARED_FILENAME, p);