testsuite: Don't assert more than guaranteed

Compositors don't guarantee that there's any physical devices
around to correspond to the input capabilities.

This was found running the tests against mutter headless.
This commit is contained in:
Matthias Clasen
2024-09-27 19:55:48 -04:00
parent 3d3cafefc8
commit d01ca53bde

View File

@@ -74,7 +74,6 @@ test_default_seat (void)
g_assert_true (gdk_device_get_display (pointer0) == display);
g_assert_true (gdk_device_get_seat (pointer0) == seat0);
g_assert_nonnull (physical_devices);
for (l = physical_devices; l; l = l->next)
{
device = l->data;
@@ -99,7 +98,6 @@ test_default_seat (void)
g_assert_true (gdk_device_get_seat (keyboard0) == seat0);
g_assert_true (gdk_device_get_source (keyboard0) == GDK_SOURCE_KEYBOARD);
g_assert_nonnull (physical_devices);
for (l = physical_devices; l; l = l->next)
{
device = l->data;