X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Funit%2Ftest_utils_expand_path.c;fp=tests%2Funit%2Ftest_utils_expand_path.c;h=65582ff805cee08ab8c1dedeb1bba48df966f54a;hp=6b809b88d99b0d724b1ed579ecdef03d2834519f;hb=9a5063437cf46024b44827508663fa2b24e97814;hpb=02bf969d126239abcf9912fb51e706fc09ac3592 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 =