tests: Fix crash on plenty of architectures upstream upstream/231
authorBastien Nocera <hadess@hadess.net>
Mon, 20 Feb 2017 15:17:50 +0000 (16:17 +0100)
committerBastien Nocera <hadess@hadess.net>
Mon, 20 Feb 2017 15:17:50 +0000 (16:17 +0100)
umockdev_testbed_add_device() expects 2 sentinels, one for the sysfs
attributes, one for the udev properties.

Spotted by Martin Pitt <martinpitt@gnome.org>

https://bugzilla.gnome.org/show_bug.cgi?id=778734

tests/test-enumerator-filter.c

index e5fc0b6..9c97903 100644 (file)
@@ -47,7 +47,8 @@ test_enumerator_filter (void)
                                     "ID_MODEL", "KoolGadget 2", NULL);
 
        umockdev_testbed_add_device (testbed, "drm", "dev3", NULL,
-                                    "ID_FOR_SEAT", "drm-pci-0000_00_02_0", NULL);
+                                    "ID_FOR_SEAT", "drm-pci-0000_00_02_0", NULL,
+                                    NULL);
 
        /* Check the number of items in GUdevClient */
        const gchar *subsystems[] = { "drm", NULL};