diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-05-13 18:01:32 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-05-13 18:01:32 +0200 |
commit | 0c37798916bc87d72f5f1399d9e050307901db84 (patch) | |
tree | 362ea9a9331f74891cb5dc9b4cffd904f9ca5fa1 /test/udev-test.pl | |
parent | 6205f1186e4980544ea425d31770358d1b2579e4 (diff) |
fix possible endless loop for GOTO to non-existent LABEL
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526365
Diffstat (limited to 'test/udev-test.pl')
-rwxr-xr-x | test/udev-test.pl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl index 4f61ce3e5d..788bbeac25 100755 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -1557,6 +1557,17 @@ KERNEL=="sda1", LABEL="BAD" EOF }, { + desc => "GOTO label does not exist", + subsys => "block", + devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1", + exp_name => "right", + rules => <<EOF +KERNEL=="sda1", GOTO="does-not-exist" +KERNEL=="sda1", NAME="right", +LABEL="exists" +EOF + }, + { desc => "NAME compare test", subsys => "block", devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1", |