You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by da...@apache.org on 2007/07/05 20:36:49 UTC
svn commit: r553604 - /apr/apr/trunk/test/testatomic.c
Author: davi
Date: Thu Jul 5 11:36:48 2007
New Revision: 553604
URL: http://svn.apache.org/viewvc?view=rev&rev=553604
Log:
Call apr_thread_exit() on thread exit.
Modified:
apr/apr/trunk/test/testatomic.c
Modified: apr/apr/trunk/test/testatomic.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testatomic.c?view=diff&rev=553604&r1=553603&r2=553604
==============================================================================
--- apr/apr/trunk/test/testatomic.c (original)
+++ apr/apr/trunk/test/testatomic.c Thu Jul 5 11:36:48 2007
@@ -411,6 +411,8 @@
tbox->func(tbox);
+ apr_thread_exit(thd, 0);
+
return NULL;
}
@@ -474,6 +476,7 @@
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);