summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-11-13 14:43:24 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 22:27:34 -0700
commit7efa217db0db946e68e6274e2b9cbe0a973ec47a (patch)
tree80c697681846807293352b05ee2e5b9e9ef7af79 /test
parentd4a32aa2e4804de9189574213749616dda57faa7 (diff)
[PATCH] add NAME{ignore_remove} attribute
Some broken ide drivers are generating high event traffic, with add/remove events. With this attribute, it can be specified, that the node is always available. It may be used in conjunction with the new DRIVER= match to catch specific kernel device drivers.
Diffstat (limited to 'test')
-rw-r--r--test/udev-test.pl25
1 files changed, 23 insertions, 2 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 1e06df5220..d584579584 100644
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -1105,7 +1105,28 @@ KERNEL="sda", NAME="cdrom%e"
EOF
},
{
- desc => "SUBSYSTEM test",
+ desc => "ignore remove event test",
+ subsys => "block",
+ devpath => "/block/sda",
+ exp_name => "node",
+ exp_error => "yes",
+ conf => <<EOF
+BUS="scsi", KERNEL="sda", NAME{ignore_remove}="node"
+EOF
+ },
+ {
+ desc => "ignore remove event test (with all partitions)",
+ subsys => "block",
+ devpath => "/block/sda",
+ exp_name => "node14",
+ exp_error => "yes",
+ option => "clear",
+ conf => <<EOF
+BUS="scsi", KERNEL="sda", NAME{ignore_remove, all_partitions}="node"
+EOF
+ },
+ {
+ desc => "SUBSYSTEM match test",
subsys => "block",
devpath => "/block/sda",
exp_name => "node",
@@ -1116,7 +1137,7 @@ BUS="scsi", KERNEL="sda", NAME="should_not_match2", SUBSYSTEM="vc"
EOF
},
{
- desc => "DRIVER test",
+ desc => "DRIVER match test",
subsys => "block",
devpath => "/block/sda",
exp_name => "node",