From: Ronny Chevalier Date: Sun, 14 May 2017 11:19:11 +0000 (+0200) Subject: test-conf-parser: add valid and invalid utf8 test for config_parse_path X-Git-Tag: chiark/234.4-1+devuan1.1+iwj1~133 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=8c23552ed248eed8793e3f818d67ac295ae64f6d;ds=sidebyside test-conf-parser: add valid and invalid utf8 test for config_parse_path --- diff --git a/src/test/test-conf-parser.c b/src/test/test-conf-parser.c index 8e951d7cf..a66ed1bd3 100644 --- a/src/test/test-conf-parser.c +++ b/src/test/test-conf-parser.c @@ -115,8 +115,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) {