summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-01-23 00:21:13 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:17 -0700
commit724257d97b452dd563ea1a3a5cdc53b18e8dcb34 (patch)
tree2021f7d6e49f5dd15b7a4e4f61151a6c59eba28a /test
parentbb513a064ce00e8efca1c697955d4a34b6782c29 (diff)
[PATCH] add support for figuring out which device on the sysfs "chain" the rule applies to.
This should fix one of the more annoying things to me about udev, and gets rid of a TODO item.
Diffstat (limited to 'test')
-rw-r--r--test/udev-test.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index b7013e4bde..0700e53576 100644
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -319,6 +319,15 @@ EOF
KERNEL="ttyUSB0", NAME="visor", SYMLINK="first-%n second-%n third-%n"
EOF
},
+ {
+ desc => "sysfs parent heirachy",
+ subsys => "tty",
+ devpath => "class/tty/ttyUSB0",
+ expected => "visor" ,
+ conf => <<EOF
+SYSFS_idProduct="2008", NAME="visor"
+EOF
+ },
);
# set env