test: abort if our device didn't initialize
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 6 Jun 2019 04:40:11 +0000 (14:40 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 11 Jun 2019 05:49:02 +0000 (15:49 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/litest.c

index 3befc7179636c5195c6430b32006ee954945f6b0..c29d192b7e4e43f19229f6a52be8babc6d6d669d 100644 (file)
@@ -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);