Commit cbe5e596 authored by Matthias Clasen's avatar Matthias Clasen

Make display test not fail under Wayland

This test really only works under X, since it relies on modifying
the DISPLAY env var.
parent 919f9b24
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment