From: Raphaël Beamonte Date: Fri, 15 Nov 2013 00:58:32 +0000 (-0500) Subject: Tests: move invalid tests in test_utils_expand_path that should be valid X-Git-Tag: v2.4.0-rc1~5 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=ab5ff479ba76b1701715f8801861e7dce16b4a89 Tests: move invalid tests in test_utils_expand_path that should be valid Signed-off-by: Raphaël Beamonte Signed-off-by: David Goulet --- diff --git a/tests/unit/test_utils_expand_path.c b/tests/unit/test_utils_expand_path.c index b79744b3a..bb460a2a1 100644 --- a/tests/unit/test_utils_expand_path.c +++ b/tests/unit/test_utils_expand_path.c @@ -55,6 +55,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" }, }; char **valid_tests_expected_results; static const int num_valid_tests = @@ -63,8 +65,6 @@ static const int num_valid_tests = /* Invalid test cases */ static char *invalid_tests_inputs[] = { NULL, - "/../a/b/c/d/e", - "/a/b/c/d/../../../../../e", }; static const int num_invalid_tests = sizeof(invalid_tests_inputs) / sizeof(invalid_tests_inputs[0]);