]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-conf-parser: add valid and invalid utf8 test for config_parse_path 5961/head
authorRonny Chevalier <chevalier.ronny@gmail.com>
Sun, 14 May 2017 11:19:11 +0000 (13:19 +0200)
committerRonny Chevalier <chevalier.ronny@gmail.com>
Sun, 14 May 2017 11:19:11 +0000 (13:19 +0200)
src/test/test-conf-parser.c

index 26ff27035b6337ebc21172a8b398b6d7f20c3c40..77fcbc0dd3399aca7228d37d90a2a55a7f6a952a 100644 (file)
@@ -109,8 +109,10 @@ static void test_config_parse_path(void) {
         test_config_parse_path_one("/path", "/path");
         test_config_parse_path_one("/path//////////", "/path");
         test_config_parse_path_one("///path/foo///bar////bar//", "/path/foo/bar/bar");
+        test_config_parse_path_one("/path/\xc3\x80", "/path/\xc3\x80");
 
         test_config_parse_path_one("not_absolute/path", NULL);
+        test_config_parse_path_one("/path/\xc3\x7f", NULL);
 }
 
 static void test_config_parse_log_level(void) {