From: greg@kroah.com Date: Thu, 18 Dec 2003 02:28:05 +0000 (-0800) Subject: [PATCH] add tests to catch whitespace and comment config file parsing errors. X-Git-Tag: 010~28 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=281ff00a611aa0a71e43dd4355b0caa918d820d2;p=systemd [PATCH] add tests to catch whitespace and comment config file parsing errors. --- diff --git a/test/udev-test.pl b/test/udev-test.pl index 08b99f04..7afbd0d6 100644 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -101,6 +101,39 @@ EOF expected => "visor" , conf => < "Handle comment lines in config file (and replace kernel name)", + subsys => "tty", + devpath => "class/tty/ttyUSB0", + expected => "visor" , + conf => < "Handle comment lines in config file with whitespace (and replace kernel name)", + subsys => "tty", + devpath => "class/tty/ttyUSB0", + expected => "visor" , + conf => < "Handle empty lines in config file (and replace kernel name)", + subsys => "tty", + devpath => "class/tty/ttyUSB0", + expected => "visor" , + conf => <