test-conf-parser: add valid and invalid utf8 test for config_parse_path
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user