[glib] gio/tests/task: fix for change to cancellation behavior



commit de1bd45fe9ef82c1f5f48c63975ee18ede67d23a
Author: Dan Winship <danw gnome org>
Date:   Mon Jul 20 17:33:42 2015 -0400

    gio/tests/task: fix for change to cancellation behavior
    
    Multiple tasks cancelled at the same time now complete in the opposite
    order from how they used to. Fix the test to not assume any particular
    order.

 gio/tests/task.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/tests/task.c b/gio/tests/task.c
index c4e209c..66221a9 100644
--- a/gio/tests/task.c
+++ b/gio/tests/task.c
@@ -1167,7 +1167,7 @@ test_run_in_thread_overflow (void)
   g_mutex_unlock (&overflow_mutex);
 
   /* Wait for all tasks to complete. */
-  while (!buf[NUM_OVERFLOW_TASKS - 1])
+  while (strlen (buf) != NUM_OVERFLOW_TASKS)
     g_usleep (1000);
 
   i = strspn (buf, ".");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]