summaryrefslogtreecommitdiff
path: root/udev/lib/test-libudev.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev/lib/test-libudev.c')
-rw-r--r--udev/lib/test-libudev.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/udev/lib/test-libudev.c b/udev/lib/test-libudev.c
index 0f485248e8..8ef7a6e3bd 100644
--- a/udev/lib/test-libudev.c
+++ b/udev/lib/test-libudev.c
@@ -333,6 +333,13 @@ int main(int argc, char *argv[], char *envp[])
test_enumerate_print_list(enumerate);
udev_enumerate_unref(enumerate);
+ printf("enumerate 'subsystem'\n");
+ enumerate = udev_enumerate_new_from_subsystems(udev);
+ if (enumerate == NULL)
+ return -1;
+ test_enumerate_print_list(enumerate);
+ udev_enumerate_unref(enumerate);
+
test_monitor(udev, socket);
out:
udev_unref(udev);