[glib] gio/tests/task: fix for change to cancellation behavior
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gio/tests/task: fix for change to cancellation behavior
- Date: Mon, 20 Jul 2015 21:38:46 +0000 (UTC)
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]