mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 01:36:17 +01:00
glib/tests: disable a racy check on mainloop test
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
56405a2fda
commit
0bdd37b7ff
@ -1854,14 +1854,17 @@ test_nfds (void)
|
||||
|
||||
/* Now actually iterate the loop; the fd should be readable and
|
||||
* writable, so source1 and source3 should be triggered, but *not*
|
||||
* source2, since it's lower priority than them. (Though on
|
||||
* G_OS_WIN32, source3 doesn't get triggered, probably because of
|
||||
* giowin32 weirdness...)
|
||||
* source2, since it's lower priority than them.
|
||||
*/
|
||||
g_main_context_iteration (ctx, FALSE);
|
||||
|
||||
g_assert_true (source1_ran);
|
||||
/* FIXME:
|
||||
* On win32, giowin32.c uses blocking threads for read/write on channels. They
|
||||
* may not have yet triggered an event after one loop iteration. Hence, the
|
||||
* following asserts are racy and disabled.
|
||||
*/
|
||||
#ifndef G_OS_WIN32
|
||||
g_assert_true (source1_ran);
|
||||
g_assert_true (source3_ran);
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user