mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
tests/monitor-unit-tests: Move test client sanity check into helper
https://gitlab.gnome.org/GNOME/mutter/merge_requests/912
This commit is contained in:
parent
77aad0869f
commit
db91439bb0
@ -378,15 +378,22 @@ create_monitor_test_clients (void)
|
||||
}
|
||||
|
||||
static void
|
||||
check_monitor_test_clients_state (void)
|
||||
check_test_client_state (TestClient *test_client)
|
||||
{
|
||||
GError *error = NULL;
|
||||
|
||||
if (!test_client_wait (wayland_monitor_test_client, &error))
|
||||
g_error ("Failed to sync Wayland test client: %s", error->message);
|
||||
if (!test_client_wait (test_client, &error))
|
||||
{
|
||||
g_error ("Failed to sync test client '%s': %s",
|
||||
test_client_get_id (test_client), error->message);
|
||||
}
|
||||
}
|
||||
|
||||
if (!test_client_wait (x11_monitor_test_client, &error))
|
||||
g_error ("Failed to sync X11 test client: %s", error->message);
|
||||
static void
|
||||
check_monitor_test_clients_state (void)
|
||||
{
|
||||
check_test_client_state (wayland_monitor_test_client);
|
||||
check_test_client_state (x11_monitor_test_client);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user