summaryrefslogtreecommitdiff
path: root/src/test/test-conf-parser.c
diff options
context:
space:
mode:
authorRonny Chevalier <chevalier.ronny@gmail.com>2017-05-14 13:19:11 +0200
committerRonny Chevalier <chevalier.ronny@gmail.com>2017-05-14 13:19:11 +0200
commitd5ade2d6027c67ef5a16d4a0e38c9fa38fd68212 (patch)
tree43cef68757124f72f068d29a87846c9a5a06da12 /src/test/test-conf-parser.c
parentb4958f42af08a72cf02e845c8db8d60fe2e5a82f (diff)
downloadsystemd-d5ade2d6027c67ef5a16d4a0e38c9fa38fd68212.tar.gz
test-conf-parser: add valid and invalid utf8 test for config_parse_path
Diffstat (limited to 'src/test/test-conf-parser.c')
-rw-r--r--src/test/test-conf-parser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test-conf-parser.c b/src/test/test-conf-parser.c
index 26ff27035b..77fcbc0dd3 100644
--- a/src/test/test-conf-parser.c
+++ b/src/test/test-conf-parser.c
@@ -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) {