summaryrefslogtreecommitdiff
path: root/test/testatomic.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/testatomic.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/testatomic.c')
-rw-r--r--test/testatomic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testatomic.c b/test/testatomic.c
index eb8f2a24b..62fc4c60e 100644
--- a/test/testatomic.c
+++ b/test/testatomic.c
@@ -35,7 +35,7 @@
static void test_init(abts_case *tc, void *data)
{
- apr_assert_success(tc, "Could not initliaze atomics", apr_atomic_init(p));
+ APR_ASSERT_SUCCESS(tc, "Could not initliaze atomics", apr_atomic_init(p));
}
static void test_set32(abts_case *tc, void *data)
@@ -242,7 +242,7 @@ static void test_atomics_threaded(abts_case *tc, void *data)
#endif
rv = apr_thread_mutex_create(&thread_lock, APR_THREAD_MUTEX_DEFAULT, p);
- apr_assert_success(tc, "Could not create lock", rv);
+ APR_ASSERT_SUCCESS(tc, "Could not create lock", rv);
for (i = 0; i < NUM_THREADS; i++) {
apr_status_t r1, r2, r3;