From: Yu Watanabe Date: Thu, 21 Feb 2019 09:03:32 +0000 (+0900) Subject: test-udev: add more tests for line continuation X-Git-Tag: v242-rc1~259^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=84a0819c9d89a2ddb195a5d975ae1fd5c62fde3c;p=thirdparty%2Fsystemd.git test-udev: add more tests for line continuation --- diff --git a/test/udev-test.pl b/test/udev-test.pl index a5e1f8cda38..002fabd9fd6 100755 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -1466,8 +1466,42 @@ TAG+="hoge1",\\ TAG+="hoge2",\\ # spaces before and after token are dropped TAG+="hoge3", \\ +\\ + \\ TAG+="hoge4" TAGS=="hoge1", TAGS=="hoge2", TAGS=="hoge3", TAGS=="hoge4", SYMLINK+="found" +EOF + }, + { + desc => "continuations with empty line", + devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda", + exp_name => "found", + not_exp_name => "bad", + rules => < "continuations with white only line", + devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda", + exp_name => "found", + not_exp_name => "bad", + rules => <