From: Kay Sievers Date: Thu, 16 Aug 2007 10:45:31 +0000 (+0200) Subject: accept relative path for TEST X-Git-Tag: 174~1852 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03f65fe6a9cd32a5861b1a929cdf4f7eddbd593f;p=systemd accept relative path for TEST --- diff --git a/test/udev-test.pl b/test/udev-test.pl index 53499d88..fe1c6da4 100755 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -1568,6 +1568,34 @@ EOF exp_name => "00:e0:00:fb:04:e1", rules => < "TEST absolute path", + subsys => "block", + devpath => "/block/sda", + exp_name => "there", + rules => < "TEST subsys/kernel lookup", + subsys => "block", + devpath => "/block/sda", + exp_name => "yes", + rules => < "TEST relative path", + subsys => "block", + devpath => "/block/sda", + exp_name => "relative", + rules => <dev->devpath, sizeof(tmp)); + strlcat(tmp, "/", sizeof(tmp)); + strlcat(tmp, filename, sizeof(tmp)); + strlcpy(filename, tmp, sizeof(filename)); } match = (stat(filename, &statbuf) == 0);