[mutter] tests/monitor-unit-tests: Set up async waiter after X11 client
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] tests/monitor-unit-tests: Set up async waiter after X11 client
- Date: Mon, 25 Jan 2021 15:35:37 +0000 (UTC)
commit ff25ec3f3620977cedba0850ab0bb23361794180
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Fri Jan 22 09:53:24 2021 +0100
tests/monitor-unit-tests: Set up async waiter after X11 client
We'll have two persistent client connections alive for the whole test,
one X11 client, and one Wayland client. So in order to be able to set up
the async waiter, do so after setting up the X11 client, as after that
we know we'll have a MetaX11Display ready to use.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1681>
src/tests/monitor-unit-tests.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/tests/monitor-unit-tests.c b/src/tests/monitor-unit-tests.c
index 0514635180..f05bdb2773 100644
--- a/src/tests/monitor-unit-tests.c
+++ b/src/tests/monitor-unit-tests.c
@@ -178,11 +178,6 @@ create_monitor_test_clients (void)
{
GError *error = NULL;
- test_wait_for_x11_display ();
-
- meta_x11_display_set_alarm_filter (meta_get_display ()->x11_display,
- monitor_tests_alarm_filter, NULL);
-
wayland_monitor_test_client = test_client_new (WAYLAND_TEST_CLIENT_NAME,
META_WINDOW_CLIENT_TYPE_WAYLAND,
&error);
@@ -195,6 +190,9 @@ create_monitor_test_clients (void)
if (!x11_monitor_test_client)
g_error ("Failed to launch X11 test client: %s", error->message);
+ meta_x11_display_set_alarm_filter (meta_get_display ()->x11_display,
+ monitor_tests_alarm_filter, NULL);
+
if (!test_client_do (wayland_monitor_test_client, &error,
"create", WAYLAND_TEST_CLIENT_WINDOW,
NULL))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]