mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 01:27:11 +03:00
test-conf-parser: add valid and invalid utf8 test for config_parse_path
This commit is contained in:
parent
b4958f42af
commit
d5ade2d602
@ -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//////////", "/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/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("not_absolute/path", NULL);
|
||||||
|
test_config_parse_path_one("/path/\xc3\x7f", NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void test_config_parse_log_level(void) {
|
static void test_config_parse_log_level(void) {
|
||||||
|
Loading…
Reference in New Issue
Block a user