]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix all_events loop terminating condition to stop false positives
authorMark Andrews <marka@isc.org>
Thu, 1 Dec 2011 22:30:37 +0000 (22:30 +0000)
committerMark Andrews <marka@isc.org>
Thu, 1 Dec 2011 22:30:37 +0000 (22:30 +0000)
lib/isc/tests/task_test.c

index ca8475d3368dc8c192d967e08e2ed3e3245b0b04..dee3823bf9e73089a8193c8ee21b9ff1b7cd87f0 100644 (file)
@@ -14,7 +14,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: task_test.c,v 1.5 2011/11/29 00:41:28 marka Exp $ */
+/* $Id: task_test.c,v 1.6 2011/12/01 22:30:37 marka Exp $ */
 
 /*! \file */
 
@@ -131,7 +131,7 @@ ATF_TC_BODY(all_events, tc) {
        ATF_CHECK_EQ(b, 0);
        isc_task_send(task, &event);
 
-       while (a == 0 && b == 0 && i++ < 5000) {
+       while ((a == 0 || b == 0) && i++ < 5000) {
 #ifndef ISC_PLATFORM_USETHREADS
                while (isc__taskmgr_ready(taskmgr))
                        isc__taskmgr_dispatch(taskmgr);