From de1bd45fe9ef82c1f5f48c63975ee18ede67d23a Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Mon, 20 Jul 2015 17:33:42 -0400 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/tests/task.c b/gio/tests/task.c index c4e209c4d..66221a9d3 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, ".");