Signed-off-by: Raphaël Beamonte <[email protected]>
---
 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 6b809b8..65582ff 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 =
-- 
1.7.10.4


_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

Reply via email to