From: Kay Sievers Date: Sun, 26 Oct 2008 03:35:32 +0000 (+0100) Subject: test: add RUN+="socket: ..." to a test to run monitor code X-Git-Tag: 174~1372 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6243a414e5ea233862445db0e57d6033879985f;p=systemd test: add RUN+="socket: ..." to a test to run monitor code --- diff --git a/test/udev-test.pl b/test/udev-test.pl index 767f6ade..096977a6 100755 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -36,7 +36,7 @@ my @tests = ( devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda", exp_name => "boot_disk" , rules => < "sda-8741C4G-end", exp_perms => "0:0:0660", rules => <envp_uptodate) - if (update_envp_monitor_buf(udev_device) < 32) + if (update_envp_monitor_buf(udev_device) != 0) return NULL; return udev_device->envp; } @@ -1087,7 +1087,7 @@ char **udev_device_get_properties_envp(struct udev_device *udev_device) ssize_t udev_device_get_properties_monitor_buf(struct udev_device *udev_device, const char **buf) { if (!udev_device->envp_uptodate) - if (update_envp_monitor_buf(udev_device) < 32) + if (update_envp_monitor_buf(udev_device) != 0) return -EINVAL; *buf = udev_device->monitor_buf; return udev_device->monitor_buf_len;