mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 21:16:15 +01: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:
parent
717ebba9d7
commit
de1bd45fe9
@ -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, ".");
|
||||
|
Loading…
Reference in New Issue
Block a user