summaryrefslogtreecommitdiff
path: root/test/udev-test.pl
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-07-25 15:29:14 +0200
committerKay Sievers <kay.sievers@vrfy.org>2007-07-25 15:29:14 +0200
commit19096c087f8e1fc9f60ceb948f8be9b179885569 (patch)
treee94d402f9893b1c237104cfe68cbac16d3c825f5 /test/udev-test.pl
parentfea9b2d2924235a459e888ecd35a8b43093b9542 (diff)
restore behavior of NAME==
Diffstat (limited to 'test/udev-test.pl')
-rwxr-xr-xtest/udev-test.pl12
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",