mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
testsuite: Skip focus tests when necessary
If our window does not get focus, we can't reliably test things that depend on widgets being focused.
This commit is contained in:
parent
db6a116d49
commit
765f55dfbe
@ -214,7 +214,11 @@ load_ui_file (GFile *ui_file,
|
||||
if (keep_running)
|
||||
g_source_remove (timeout_handle_id);
|
||||
|
||||
g_assert (gtk_window_is_active (GTK_WINDOW (window)));
|
||||
if (!gtk_window_is_active (GTK_WINDOW (window)))
|
||||
{
|
||||
g_print ("Skipping focus tests because window did not get focus. Headless display?");
|
||||
exit (77);
|
||||
}
|
||||
|
||||
if (ext)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user