summaryrefslogtreecommitdiff
path: root/testsuite/gdk
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-08-28 12:26:25 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-08-28 12:26:25 -0400
commitcbe5e596af4f7b8659c2f392fd77bd048720e5b8 (patch)
tree8ff34b338af2c04fb22c8a622146ce8f85b1a102 /testsuite/gdk
parent919f9b24d2071f50425a595546857e95c5caa8cf (diff)
downloadgtk+-cbe5e596af4f7b8659c2f392fd77bd048720e5b8.tar.gz
Make display test not fail under Wayland
This test really only works under X, since it relies on modifying the DISPLAY env var.
Diffstat (limited to 'testsuite/gdk')
-rw-r--r--testsuite/gdk/display.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/gdk/display.c b/testsuite/gdk/display.c
index 6ca7818f93..297c8e8ae4 100644
--- a/testsuite/gdk/display.c
+++ b/testsuite/gdk/display.c
@@ -19,6 +19,7 @@ static void
test_unset_display_subprocess2 (void)
{
g_unsetenv ("DISPLAY");
+
gdk_init (NULL, NULL);
}
@@ -69,6 +70,8 @@ main (int argc, char *argv[])
{
g_test_init (&argc, &argv, NULL);
+ gdk_set_allowed_backends ("x11");
+
g_test_add_func ("/display/unset-display", test_unset_display);
g_test_add_func ("/display/unset-display/subprocess/1", test_unset_display_subprocess1);
g_test_add_func ("/display/unset-display/subprocess/2", test_unset_display_subprocess2);