chiark / gitweb /
add builtin load/unload initializers
[elogind.git] / udev / udevadm-test.c
index e807fc0..a7c6226 100644 (file)
@@ -103,6 +103,8 @@ static int adm_test(struct udev *udev, int argc, char *argv[])
 
        sigprocmask(SIG_SETMASK, NULL, &sigmask_orig);
 
+       udev_builtin_load(udev);
+
        rules = udev_rules_new(udev, resolve_names);
        if (rules == NULL) {
                fprintf(stderr, "error reading rules\n");
@@ -159,6 +161,7 @@ out:
        udev_event_unref(event);
        udev_device_unref(dev);
        udev_rules_unref(rules);
+       udev_builtin_unload(udev);
        return rc;
 }