forked from AuroraMiddleware/gtk
Make display test not fail under Wayland
This test really only works under X, since it relies on modifying the DISPLAY env var.
This commit is contained in:
parent
919f9b24d2
commit
cbe5e596af
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user