From: Yu Watanabe Date: Mon, 18 Feb 2019 01:38:29 +0000 (+0900) Subject: test-udev: add a testcase of too long line X-Git-Tag: v242-rc1~300^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e797cf596df50a6bdd8cbf8e9b2467a3a934171;p=thirdparty%2Fsystemd.git test-udev: add a testcase of too long line --- diff --git a/test/udev-test.pl b/test/udev-test.pl index 957cda541cc..3a50694fa9b 100755 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -39,6 +39,11 @@ for (my $i = 1; $i <= 10000; ++$i) { $rules_10k_tags .= 'KERNEL=="sda", TAG+="test' . $i . "\"\n"; } +my $rules_10k_tags_continuation = ""; +for (my $i = 1; $i <= 10000; ++$i) { + $rules_10k_tags_continuation .= 'KERNEL=="sda", TAG+="test' . $i . "\"\\\n"; +} + my @tests = ( { desc => "no rules", @@ -1444,6 +1449,16 @@ EOF exp_name => "found", rules => $rules_10k_tags . < "don't crash with lots of tags with continuation", + 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 => $rules_10k_tags_continuation . <