From 08412886f840603db9127d3d66ecbc1cc2326f43 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Mon, 20 Feb 2017 16:17:50 +0100 Subject: [PATCH] tests: Fix crash on plenty of architectures umockdev_testbed_add_device() expects 2 sentinels, one for the sysfs attributes, one for the udev properties. Spotted by Martin Pitt https://bugzilla.gnome.org/show_bug.cgi?id=778734 --- tests/test-enumerator-filter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test-enumerator-filter.c b/tests/test-enumerator-filter.c index e5fc0b6..9c97903 100644 --- a/tests/test-enumerator-filter.c +++ b/tests/test-enumerator-filter.c @@ -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}; -- 2.34.1