summaryrefslogtreecommitdiff
path: root/test/testlock.c
diff options
context:
space:
mode:
authorjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2002-12-06 13:35:36 +0000
committerjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2002-12-06 13:35:36 +0000
commit699fc992ed0499137db4f29d94751ee4669eb0dc (patch)
treea89c6c11863e4a3afb3ba43fa71cf963f09533ce /test/testlock.c
parent3a39d3cc7b9a98c636e49ae6bbfcda975aa709b1 (diff)
downloadlibapr-699fc992ed0499137db4f29d94751ee4669eb0dc.tar.gz
Use CuAssertSuccess for some rv==APR_SUCCESS checks which are currently
failing on various platforms. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64122 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testlock.c')
-rw-r--r--test/testlock.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/testlock.c b/test/testlock.c
index 0a3c92f19..2dfa2e043 100644
--- a/test/testlock.c
+++ b/test/testlock.c
@@ -222,20 +222,20 @@ static void test_thread_rwlock(CuTest *tc)
apr_status_t s1, s2, s3, s4;
s1 = apr_thread_rwlock_create(&rwlock, p);
- CuAssertIntEquals(tc, APR_SUCCESS, s1);
+ CuAssertSuccess(tc, "rwlock_create", s1);
CuAssertPtrNotNull(tc, rwlock);
i = 0;
x = 0;
s1 = apr_thread_create(&t1, NULL, thread_rwlock_func, NULL, p);
- CuAssertIntEquals(tc, APR_SUCCESS, s1);
+ CuAssertSuccess(tc, "create thread 1", s1);
s2 = apr_thread_create(&t2, NULL, thread_rwlock_func, NULL, p);
- CuAssertIntEquals(tc, APR_SUCCESS, s2);
+ CuAssertSuccess(tc, "create thread 2", s2);
s3 = apr_thread_create(&t3, NULL, thread_rwlock_func, NULL, p);
- CuAssertIntEquals(tc, APR_SUCCESS, s3);
+ CuAssertSuccess(tc, "create thread 3", s3);
s4 = apr_thread_create(&t4, NULL, thread_rwlock_func, NULL, p);
- CuAssertIntEquals(tc, APR_SUCCESS, s4);
+ CuAssertSuccess(tc, "create thread 4", s4);
apr_thread_join(&s1, t1);
apr_thread_join(&s2, t2);