mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01:00
Fix gio/tests/socket-listener
g_socket_listener_add_address() is synchronous; all of the events will
have been emitted before it returns and it doesn't queue any sources.
The test was unintentionally depending on the fact that
g_main_context_iterate(NULL, TRUE) would return anyway (at least the
first time it was called), but that's no longer true after e4ee307
.
https://bugzilla.gnome.org/show_bug.cgi?id=768968
This commit is contained in:
parent
7e40228cae
commit
6de5595570
@ -74,12 +74,9 @@ test_event_signal (void)
|
||||
NULL,
|
||||
&error);
|
||||
g_assert_no_error (error);
|
||||
g_assert_true (success);
|
||||
|
||||
g_object_unref (saddr);
|
||||
|
||||
do
|
||||
g_main_context_iteration (NULL, TRUE);
|
||||
while (!success);
|
||||
|
||||
g_object_unref (listener);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user