From 0c37798916bc87d72f5f1399d9e050307901db84 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Wed, 13 May 2009 18:01:32 +0200 Subject: fix possible endless loop for GOTO to non-existent LABEL http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526365 --- test/udev-test.pl | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test') 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 @@ -1554,6 +1554,17 @@ KERNEL=="sda1", GOTO="BAD" KERNEL=="sda1", NAME="", LABEL="NO" KERNEL=="sda1", NAME="right", LABEL="TEST" 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 => <