diff options
Diffstat (limited to 'test/udev-test.pl')
-rwxr-xr-x | test/udev-test.pl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl index a2043080e9..53499d8871 100755 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -1519,6 +1519,18 @@ KERNEL=="sda1", NAME=="node*", SYMLINK+="link2" EOF }, { + desc => "NAME compare test 2", + subsys => "block", + devpath => "/block/sda/sda1", + exp_name => "link2", + exp_target => "sda1", + not_exp_name => "link", + rules => <<EOF +KERNEL=="sda1", NAME=="?*", SYMLINK+="link" +KERNEL=="sda1", NAME!="?*", SYMLINK+="link2" +EOF + }, + { desc => "invalid key operation", subsys => "block", devpath => "/block/sda/sda1", |