mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
tests: Override Wayland display name in test_init()
It's overridden by all test cases, but they all also call test_init() so do it there instead. https://gitlab.gnome.org/GNOME/mutter/issues/193
This commit is contained in:
parent
e2cd9abf46
commit
fe1d9fb4a7
@ -189,7 +189,6 @@ main (int argc, char *argv[])
|
||||
|
||||
meta_override_compositor_configuration (META_COMPOSITOR_TYPE_WAYLAND,
|
||||
META_TYPE_BACKEND_TEST);
|
||||
meta_wayland_override_display_name ("mutter-test-display");
|
||||
|
||||
meta_init ();
|
||||
meta_register_with_session ();
|
||||
|
@ -797,7 +797,6 @@ main (int argc, char **argv)
|
||||
g_option_context_free (ctx);
|
||||
|
||||
meta_plugin_manager_load (test_get_plugin_name ());
|
||||
meta_wayland_override_display_name ("mutter-test-display");
|
||||
|
||||
meta_init ();
|
||||
meta_register_with_session ();
|
||||
|
@ -92,6 +92,8 @@ test_init (int *argc,
|
||||
g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=");
|
||||
|
||||
ensure_test_client_path (*argc, *argv);
|
||||
|
||||
meta_wayland_override_display_name ("mutter-test-display");
|
||||
}
|
||||
|
||||
AsyncWaiter *
|
||||
|
@ -263,7 +263,6 @@ main (int argc, char *argv[])
|
||||
|
||||
meta_override_compositor_configuration (META_COMPOSITOR_TYPE_WAYLAND,
|
||||
META_TYPE_BACKEND_TEST);
|
||||
meta_wayland_override_display_name ("mutter-test-display");
|
||||
|
||||
meta_init ();
|
||||
meta_register_with_session ();
|
||||
|
Loading…
Reference in New Issue
Block a user