[libgudev] tests: Fix crash on plenty of architectures
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgudev] tests: Fix crash on plenty of architectures
- Date: Mon, 20 Feb 2017 15:21:34 +0000 (UTC)
commit 08412886f840603db9127d3d66ecbc1cc2326f43
Author: Bastien Nocera <hadess hadess net>
Date: Mon Feb 20 16:17:50 2017 +0100
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 <martinpitt gnome org>
https://bugzilla.gnome.org/show_bug.cgi?id=778734
tests/test-enumerator-filter.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
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};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]