[mutter/gnome-42] tests/runner: Remove support running tests as an X11 WM
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-42] tests/runner: Remove support running tests as an X11 WM
- Date: Thu, 11 Aug 2022 12:45:57 +0000 (UTC)
commit b30f18b9e586b6f32c37e4b6cd47aebe2769b3d3
Author: Jonas Ådahl <jadahl gmail com>
Date: Wed Aug 3 18:42:04 2022 +0200
tests/runner: Remove support running tests as an X11 WM
This hasn't worked for a while, since the test always runs the nested
backend, meaning it's a Wayland compositor. To unblock testing window
management in combination to monitor changes, lets remove the
unreachable X11 WM paths, so that we can start using virtual monitors.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2554>
src/tests/test-runner.c | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/src/tests/test-runner.c b/src/tests/test-runner.c
index c691ef6ef6..84992a23e6 100644
--- a/src/tests/test-runner.c
+++ b/src/tests/test-runner.c
@@ -82,20 +82,16 @@ test_case_new (MetaContext *context)
TestCase *test = g_new0 (TestCase, 1);
MetaDisplay *display = meta_context_get_display (context);
- if (!meta_is_wayland_compositor ())
+ if (display->x11_display)
{
- meta_context_test_wait_for_x11_display (META_CONTEXT_TEST (context));
on_x11_display_opened (display, test);
}
else
{
- if (display->x11_display)
- on_x11_display_opened (display, test);
- else
- test->x11_display_opened_handler_id =
- g_signal_connect (meta_get_display (), "x11-display-opened",
- G_CALLBACK (on_x11_display_opened),
- test);
+ test->x11_display_opened_handler_id =
+ g_signal_connect (meta_get_display (), "x11-display-opened",
+ G_CALLBACK (on_x11_display_opened),
+ test);
}
test->context = context;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]