summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2007-02-25 01:06:20 +0100
committerKay Sievers <kay.sievers@suse.de>2007-02-25 01:06:20 +0100
commit864b9b5e37b5e480d0e23507d4dd8360525ad453 (patch)
tree6be05c178bd36863a3d5a47b100cd1add82f20c4 /test
parent7db33ac19c430c9a4c4af415e2febbd6b17aff2a (diff)
add test for an attribute which contains an operator char
Diffstat (limited to 'test')
-rw-r--r--test/sys/block/sda/test:colon+plus1
-rwxr-xr-xtest/udev-test.pl11
2 files changed, 11 insertions, 1 deletions
diff --git a/test/sys/block/sda/test:colon+plus b/test/sys/block/sda/test:colon+plus
new file mode 100644
index 0000000000..0fed9a5d60
--- /dev/null
+++ b/test/sys/block/sda/test:colon+plus
@@ -0,0 +1 @@
+colon
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 73d99297d2..36cbe8ac75 100755
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -1556,11 +1556,20 @@ EOF
devpath => "/block/sda/sda1",
exp_name => "yes",
rules => <<EOF
-KERNEL="sda1", NAME=="no"
+KERNEL="sda1", NAME="no"
KERNEL=="sda1", NAME="yes"
EOF
},
{
+ desc => "operator chars in attribute",
+ subsys => "block",
+ devpath => "/block/sda",
+ exp_name => "yes",
+ rules => <<EOF
+KERNEL=="sda", ATTR{test:colon+plus}=="?*", NAME="yes"
+EOF
+ },
+ {
desc => "overlong comment line",
subsys => "block",
devpath => "/block/sda/sda1",