summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavi <davi@13f79535-47bb-0310-9956-ffa450edef68>2007-07-05 18:36:48 +0000
committerdavi <davi@13f79535-47bb-0310-9956-ffa450edef68>2007-07-05 18:36:48 +0000
commit0bf4f76e1729566e7462b725ee6dd6339f04dffd (patch)
tree7402cb3a2a4db0b5b14f4d36f0630a7708a86e25
parent0007afd1b6a21f02d3ab14e9acc331380a8b85e4 (diff)
downloadlibapr-0bf4f76e1729566e7462b725ee6dd6339f04dffd.tar.gz
Call apr_thread_exit() on thread exit.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@553604 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--test/testatomic.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/testatomic.c b/test/testatomic.c
index 74409b3bd..33a82c1fd 100644
--- a/test/testatomic.c
+++ b/test/testatomic.c
@@ -411,6 +411,8 @@ void *APR_THREAD_FUNC thread_func_busyloop(apr_thread_t *thd, void *data)
tbox->func(tbox);
+ apr_thread_exit(thd, 0);
+
return NULL;
}
@@ -474,6 +476,7 @@ static void test_atomics_busyloop_threaded(abts_case *tc, void *data)
apr_status_t retval;
rv = apr_thread_join(&retval, thread[i]);
ABTS_ASSERT(tc, "Thread join failed", rv == APR_SUCCESS);
+ ABTS_ASSERT(tc, "Invalid return value from thread_join", retval == 0);
}
ABTS_INT_EQUAL(tbox->tc, count, 98);