tests: Use custom Wayland display name

This gets rid of a warning about the Wayland display name already being
taken.

https://bugzilla.gnome.org/show_bug.cgi?id=777732
This commit is contained in:
Jonas Ådahl 2016-12-05 21:26:46 +08:00
parent 239671f882
commit 95c101a0ba
2 changed files with 3 additions and 0 deletions

View File

@ -1159,6 +1159,7 @@ main (int argc, char **argv)
g_option_context_free (ctx);
meta_plugin_manager_load ("default");
meta_wayland_override_display_name ("mutter-test-display");
meta_init ();
meta_register_with_session ();

View File

@ -29,6 +29,7 @@
#include "core/main-private.h"
#include "tests/meta-backend-test.h"
#include "tests/monitor-unit-tests.h"
#include "wayland/meta-wayland.h"
typedef struct _MetaTestLaterOrderCallbackData
{
@ -224,6 +225,7 @@ 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 ();