summaryrefslogtreecommitdiff
path: root/test/udev-test.pl
diff options
context:
space:
mode:
Diffstat (limited to 'test/udev-test.pl')
-rw-r--r--test/udev-test.pl11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index c433b84a97..62a2bb327b 100644
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -348,6 +348,15 @@ BUS="scsi", NAME="%k"
KERNEL="ttyUSB0", NAME="visor"
EOF
},
+ {
+ desc => "name test with ! in the name, but no matching rule",
+ subsys => "block",
+ devpath => "block/rd!c0d0",
+ expected => "rd/c0d0" ,
+ conf => <<EOF
+KERNEL="ttyUSB0", NAME="visor"
+EOF
+ },
);
# set env
@@ -418,7 +427,7 @@ if ($ARGV[0]) {
$test_num = $ARGV[0];
print "udev-test will run test number $test_num only\n";
- run_test($tests[$test_num], $test_num);
+ run_test($tests[$test_num-1], $test_num);
} else {
# test all
print "\nudev-test will run ".($#tests + 1)." tests:\n\n";