mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 18:52:09 +01:00
tests: Iterate mainloop during launch test
When launching an application, we wait for the DBus response from systemd before executing the binary. Because of this the main loop needs to be iterated for spawning to completed and the file to be created. Without this the test will time out if GLib was able to connect to the session bus.
This commit is contained in:
parent
b3023ecc28
commit
6d0c0be031
@ -334,6 +334,7 @@ wait_for_file (const gchar *want_this,
|
||||
*/
|
||||
while (access (want_this, F_OK) != 0)
|
||||
{
|
||||
g_main_context_iteration (NULL, FALSE);
|
||||
g_usleep (100000); /* 100ms */
|
||||
g_assert_cmpuint (retries, >, 0);
|
||||
retries--;
|
||||
|
Loading…
x
Reference in New Issue
Block a user