aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-07-07 22:40:09 +0200
committerKay Sievers <kay.sievers@suse.de>2005-07-07 22:40:09 +0200
commita72e3f666b897f94a64547ace3af74785d2f6771 (patch)
treecd085006d4c390bf7ef0519bc0c2cc20a7b2cd9e /test
parent613ffbeb15e0507581e5037850c1ea5d56cd0928 (diff)
downloadudev-a72e3f666b897f94a64547ace3af74785d2f6771.tar.gz
fix typo in group assignment
Thanks to: Georgi Georgiev
Diffstat (limited to 'test')
-rwxr-xr-xtest/udev-test.pl26
1 files changed, 25 insertions, 1 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 52104714..6fbc23e5 100755
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -1090,7 +1090,8 @@ EOF
desc => "ignore rule test",
subsys => "block",
devpath => "/block/sda",
- exp_name => "node",
+ exp_name => "nothing",
+ not_exp_name => "node",
exp_add_error => "yes",
rules => <<EOF
BUS=="scsi", KERNEL=="sda", NAME="node", OPTIONS="ignore"
@@ -1417,6 +1418,29 @@ KERNEL=="ttyUSB[0-9]*", SYMLINK="three"
KERNEL=="ttyUSB[0-9]*", NAME="node"
EOF
},
+ {
+ desc => "test empty NAME",
+ subsys => "tty",
+ devpath => "/class/tty/ttyUSB0",
+ exp_name => "node",
+ not_exp_name => "wrong",
+ exp_add_error => "yes",
+ rules => <<EOF
+KERNEL=="ttyUSB[0-9]*", NAME=""
+KERNEL=="ttyUSB[0-9]*", NAME="wrong"
+EOF
+ },
+ {
+ desc => "test empty NAME 2",
+ subsys => "tty",
+ devpath => "/class/tty/ttyUSB0",
+ exp_name => "right",
+ rules => <<EOF
+KERNEL=="ttyUSB[0-9]*", NAME="right"
+KERNEL=="ttyUSB[0-9]*", NAME=""
+KERNEL=="ttyUSB[0-9]*", NAME="wrong"
+EOF
+ },
);
# set env