summaryrefslogtreecommitdiff
path: root/udev/udevadm-test-builtin.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev/udevadm-test-builtin.c')
-rw-r--r--udev/udevadm-test-builtin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/udev/udevadm-test-builtin.c b/udev/udevadm-test-builtin.c
index f8af8992d0..18f04bf888 100644
--- a/udev/udevadm-test-builtin.c
+++ b/udev/udevadm-test-builtin.c
@@ -99,6 +99,8 @@ static int adm_builtin(struct udev *udev, int argc, char *argv[])
goto out;
}
+ udev_builtin_load(udev);
+
cmd = udev_builtin_lookup(command);
if (cmd >= UDEV_BUILTIN_MAX) {
fprintf(stderr, "unknown command '%s'\n", command);
@@ -113,6 +115,7 @@ static int adm_builtin(struct udev *udev, int argc, char *argv[])
}
out:
udev_device_unref(dev);
+ udev_builtin_unload(udev);
return rc;
}