summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Gilbert <bgilbert@cs.cmu.edu>2009-05-22 20:54:46 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-05-22 20:54:46 +0200
commitbec7e07acc8ca2288e780d11b4d1e1387c3513dc (patch)
tree24e9e47da2cb2bf4f7595b85214893ae239b7cc6
parent12a7c14b86bb8039a46dfd1fe64e43ea9226d02f (diff)
test: check string substitutions in OWNER and GROUP
String substitutions in OWNER and GROUP keys were broken in udev 137-142. Explicitly test for this, since such breakage will not manifest in typical rulesets.
-rwxr-xr-xtest/udev-test.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 30e8d2ac10..5516468bb7 100755
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -1654,14 +1654,14 @@ KERNEL=="sda", MODE="0000"
EOF
},
{
- desc => "TEST PROGRAM feeds MODE",
+ desc => "TEST PROGRAM feeds OWNER, GROUP, MODE",
subsys => "block",
devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
exp_name => "sda",
- exp_perms => "0:0:0400",
+ exp_perms => "5000:100:0400",
rules => <<EOF
KERNEL=="sda", MODE="666"
-KERNEL=="sda", PROGRAM=="/bin/echo 0 0 0400", OWNER="%c{1}", GROUP="%c{2}", MODE="%c{3}"
+KERNEL=="sda", PROGRAM=="/bin/echo 5000 100 0400", OWNER="%c{1}", GROUP="%c{2}", MODE="%c{3}"
EOF
},
{