|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
From fa32003951787e5fb4e974d72700bfaf3ab1aa80 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
From: Ronny Chevalier <chevalier.ronny@gmail.com>
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
Date: Sun, 14 May 2017 13:19:11 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
Subject: [PATCH] test-conf-parser: add valid and invalid utf8 test for
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
config_parse_path
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
(cherry picked from commit d5ade2d6027c67ef5a16d4a0e38c9fa38fd68212)
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
src/test/test-conf-parser.c | 2 ++
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
1 file changed, 2 insertions(+)
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
diff --git a/src/test/test-conf-parser.c b/src/test/test-conf-parser.c
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
index 26ff27035b..77fcbc0dd3 100644
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
--- a/src/test/test-conf-parser.c
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
+++ b/src/test/test-conf-parser.c
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
@@ -109,8 +109,10 @@ static void test_config_parse_path(void) {
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
test_config_parse_path_one("/path", "/path");
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
test_config_parse_path_one("/path//////////", "/path");
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
test_config_parse_path_one("///path/foo///bar////bar//", "/path/foo/bar/bar");
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
+ test_config_parse_path_one("/path/\xc3\x80", "/path/\xc3\x80");
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
test_config_parse_path_one("not_absolute/path", NULL);
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
+ test_config_parse_path_one("/path/\xc3\x7f", NULL);
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
}
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
static void test_config_parse_log_level(void) {
|