From d01ca53bdebbfaa6d762ebdda47ef2ef88fdff90 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 27 Sep 2024 19:55:48 -0400 Subject: [PATCH] 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. --- testsuite/gdk/seat.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/testsuite/gdk/seat.c b/testsuite/gdk/seat.c index 266f6d5a11..eb7e10b524 100644 --- a/testsuite/gdk/seat.c +++ b/testsuite/gdk/seat.c @@ -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;