chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07c1259
)
test-conf-parser: add valid and invalid utf8 test for config_parse_path
author
Ronny Chevalier
<chevalier.ronny@gmail.com>
Sun, 14 May 2017 11:19:11 +0000
(13:19 +0200)
committer
Sven Eden
<yamakuzure@gmx.net>
Tue, 25 Jul 2017 07:46:52 +0000
(09:46 +0200)
src/test/test-conf-parser.c
patch
|
blob
|
history
diff --git
a/src/test/test-conf-parser.c
b/src/test/test-conf-parser.c
index 8e951d7cfeebda3109cf0cf1c6b846268b3b4783..a66ed1bd3947f7a332a04591e3936e136a33e748 100644
(file)
--- 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) {