diff options
Diffstat (limited to 'src/test/test-udev.c')
-rw-r--r-- | src/test/test-udev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/test-udev.c b/src/test/test-udev.c index 4403624c5a..23b7faa939 100644 --- a/src/test/test-udev.c +++ b/src/test/test-udev.c @@ -110,13 +110,12 @@ int main(int argc, char *argv[]) { rules = udev_rules_new(udev, 1); strscpyl(syspath, sizeof(syspath), "/sys", devpath, NULL); - dev = udev_device_new_from_syspath(udev, syspath); + dev = udev_device_new_from_synthetic_event(udev, syspath, action); if (dev == NULL) { log_debug("unknown device '%s'", devpath); goto out; } - udev_device_set_action(dev, action); event = udev_event_new(dev); sigfillset(&mask); |