mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
Skip clipboard tests when they don't work
On headless weston, we have no seat, so focusing the window won't work, and thus claiming the clipboard won't either. Skip the tests in that case.
This commit is contained in:
parent
f72ca060b5
commit
5636384449
@ -130,6 +130,12 @@ test_clipboard_roundtrip (const char *type,
|
||||
char *stdout_buf = NULL;
|
||||
char *stderr_buf = NULL;
|
||||
|
||||
if (gdk_display_get_default_seat (gdk_display_get_default ()) == NULL)
|
||||
{
|
||||
g_test_skip ("we have no seat, so focus won't work");
|
||||
return;
|
||||
}
|
||||
|
||||
clipboard_client = g_test_build_filename (G_TEST_BUILT, "/clipboard-client", NULL);
|
||||
|
||||
source = g_subprocess_new (G_SUBPROCESS_FLAGS_STDOUT_PIPE,
|
||||
|
Loading…
Reference in New Issue
Block a user