apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r553604 - /apr/apr/trunk/test/testatomic.c
Date Thu, 05 Jul 2007 18:36:49 GMT
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);



Mime
View raw message