diff options
author | dreid <dreid@13f79535-47bb-0310-9956-ffa450edef68> | 2004-06-07 21:21:35 +0000 |
---|---|---|
committer | dreid <dreid@13f79535-47bb-0310-9956-ffa450edef68> | 2004-06-07 21:21:35 +0000 |
commit | a9ba3b84bee7872b82dc38e6f4ded710b2f65c8a (patch) | |
tree | 6b948a49808b3ef086fbcd00ff9fb4207df836b1 /test/testprocmutex.c | |
parent | e519c61cf1cd50ccf8f4c2561a4295299a2d89a8 (diff) | |
download | libapr-a9ba3b84bee7872b82dc38e6f4ded710b2f65c8a.tar.gz |
Presently if we fail in apr_assert_success we get the line number for
testutil.c reported. Not very useful. This change adds the passing of
the (correct) line number and also a macro to ease said passing.
I've changed all instances of apr_assert_success to use the new macro, but
not all the tests build on this platform so others should check that all
is well for them.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65171 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testprocmutex.c')
-rw-r--r-- | test/testprocmutex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testprocmutex.c b/test/testprocmutex.c index f03544494..10e0e62e4 100644 --- a/test/testprocmutex.c +++ b/test/testprocmutex.c @@ -99,7 +99,7 @@ static void test_exclusive(abts_case *tc, const char *lockname) int n; rv = apr_proc_mutex_create(&proc_lock, lockname, APR_LOCK_DEFAULT, p); - apr_assert_success(tc, "create the mutex", rv); + APR_ASSERT_SUCCESS(tc, "create the mutex", rv); for (n = 0; n < CHILDREN; n++) make_child(tc, &child[n], p); @@ -125,7 +125,7 @@ static void proc_mutex(abts_case *tc, void *data) rv = apr_shm_create(&shm, sizeof(int), shmname, p); } - apr_assert_success(tc, "create shm segment", rv); + APR_ASSERT_SUCCESS(tc, "create shm segment", rv); x = apr_shm_baseaddr_get(shm); test_exclusive(tc, NULL); |