From 8a15c404f97ecc5aa110cb62438d83d789362bf0 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 6 Jun 2019 14:40:11 +1000 Subject: [PATCH] test: abort if our device didn't initialize Signed-off-by: Peter Hutterer --- test/litest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/litest.c b/test/litest.c index 3befc717..c29d192b 100644 --- a/test/litest.c +++ b/test/litest.c @@ -1546,6 +1546,7 @@ litest_add_device_with_overrides(struct libinput *libinput, d->libinput = libinput; d->libinput_device = libinput_path_add_device(d->libinput, path); + litest_assert_ptr_notnull(d->libinput_device); ud = libinput_device_get_udev_device(d->libinput_device); d->quirks = quirks_fetch_for_device(quirks_context, ud); udev_device_unref(ud); -- 2.34.1