From 9a5063437cf46024b44827508663fa2b24e97814 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Beamonte?= Date: Sat, 23 Nov 2013 17:32:28 -0500 Subject: [PATCH] Tests: add valid test cases to test_utils_expand_path MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaël Beamonte Signed-off-by: David Goulet --- tests/unit/test_utils_expand_path.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/test_utils_expand_path.c b/tests/unit/test_utils_expand_path.c index 6b809b88d..65582ff80 100644 --- a/tests/unit/test_utils_expand_path.c +++ b/tests/unit/test_utils_expand_path.c @@ -70,6 +70,8 @@ static struct valid_test_input valid_tests_inputs[] = { { ".", ".", "" }, { "/../a/b/c/d/e", "", "/a/b/c/d/e" }, { "/a/b/c/d/../../../../../e", "", "/e" }, + { "/..", "", "/" }, + { "/a/..", "", "/" }, }; char **valid_tests_expected_results; static const int num_valid_tests = -- 2.34.1