summaryrefslogtreecommitdiff
path: root/test/testprocmutex.c
diff options
context:
space:
mode:
authorDavid Reid <dreid@apache.org>2004-06-07 21:21:35 +0000
committerDavid Reid <dreid@apache.org>2004-06-07 21:21:35 +0000
commitb0a691bcfa92a4f769b1f6115466a47e13bfb1df (patch)
tree6b948a49808b3ef086fbcd00ff9fb4207df836b1 /test/testprocmutex.c
parent0a074a5b0f093094a1620dff2c9e5fe973e6871f (diff)
downloadapr-b0a691bcfa92a4f769b1f6115466a47e13bfb1df.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: https://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.c4
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);