mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-24 10:57:53 +02:00
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.
This commit is contained in:
@@ -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, ".");
|
||||
|
Reference in New Issue
Block a user