mirror of
https://github.com/brl/mutter.git
synced 2025-08-09 09:54:40 +00:00
test-runner: Always wait after creating a window
Creating a window could take some time, causing false-positive failures when
running in slower or busy hardware like:
window 1/2 isn't known to Mutter
So before we proceed in doing any operation on it, wait for the client.
Do this in the test runner instead of repeating the same in every .metatest.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/581
(cherry picked from commit c1059df7f9
)
This commit is contained in:

committed by
Marco Trevisan

parent
07c9cd498d
commit
fb03e198e5
@@ -385,6 +385,9 @@ test_case_do (TestCase *test,
|
|||||||
argc == 3 ? argv[2] : NULL,
|
argc == 3 ? argv[2] : NULL,
|
||||||
NULL))
|
NULL))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
if (!test_client_wait (client, error))
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
else if (strcmp (argv[0], "set_parent") == 0 ||
|
else if (strcmp (argv[0], "set_parent") == 0 ||
|
||||||
strcmp (argv[0], "set_parent_exported") == 0)
|
strcmp (argv[0], "set_parent_exported") == 0)
|
||||||
|
Reference in New Issue
Block a user