diff options
author | Jeff Trawick <trawick@apache.org> | 2007-11-18 00:35:57 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2007-11-18 00:35:57 +0000 |
commit | 8c388466b88bca6c29174f2d5a736163a81620cc (patch) | |
tree | 6d661a8afb643cd91f8266f8fd55cd0be58ab7f7 /test/testatomic.c | |
parent | 32e3de4f1bdd9c281f87707033035434c0ddb770 (diff) | |
download | apr-8c388466b88bca6c29174f2d5a736163a81620cc.tar.gz |
fix some obvious reversals of expected and actual values in invocations
of ABTS_INT_EQUAL et al
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@596028 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testatomic.c')
-rw-r--r-- | test/testatomic.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/testatomic.c b/test/testatomic.c index 0d09d004e..cfea2a62c 100644 --- a/test/testatomic.c +++ b/test/testatomic.c @@ -289,9 +289,9 @@ static void test_atomics_threaded(abts_case *tc, void *data) s1 == exit_ret_val && s2 == exit_ret_val); } - ABTS_INT_EQUAL(tc, mutex_locks, NUM_THREADS * NUM_ITERATIONS); - ABTS_INT_EQUAL(tc, apr_atomic_read32(&atomic_ops), - NUM_THREADS * NUM_ITERATIONS); + ABTS_INT_EQUAL(tc, NUM_THREADS * NUM_ITERATIONS, mutex_locks); + ABTS_INT_EQUAL(tc, NUM_THREADS * NUM_ITERATIONS, + apr_atomic_read32(&atomic_ops)); rv = apr_thread_mutex_destroy(thread_lock); ABTS_ASSERT(tc, "Failed creating threads", rv == APR_SUCCESS); @@ -375,7 +375,7 @@ static void busyloop_dec32(tbox_t *tbox) busyloop_read32(tbox); val = apr_atomic_dec32(tbox->mem); apr_thread_mutex_lock(thread_lock); - ABTS_INT_NEQUAL(tbox->tc, val, 0); + ABTS_INT_NEQUAL(tbox->tc, 0, val); apr_thread_mutex_unlock(thread_lock); } while (--tbox->loop); } @@ -483,7 +483,7 @@ static void test_atomics_busyloop_threaded(abts_case *tc, void *data) ABTS_ASSERT(tc, "Invalid return value from thread_join", retval == 0); } - ABTS_INT_EQUAL(tbox->tc, count, 98); + ABTS_INT_EQUAL(tbox->tc, 98, count); rv = apr_thread_mutex_destroy(thread_lock); ABTS_ASSERT(tc, "Failed creating threads", rv == APR_SUCCESS); |