From mboxrd@z Thu Jan 1 00:00:00 1970 From: raphael.beamonte@gmail.com (=?UTF-8?q?Rapha=C3=ABl=20Beamonte?=) Date: Thu, 14 Nov 2013 19:58:32 -0500 Subject: [lttng-dev] [lttng-tools PATCH 2/5] Tests: move invalid tests in test_utils_expand_path that should be valid In-Reply-To: <1384477115-18809-1-git-send-email-raphael.beamonte@gmail.com> References: <1517784416.67313.1384445660213.JavaMail.zimbra@efficios.com> <1384477115-18809-1-git-send-email-raphael.beamonte@gmail.com> Message-ID: <1384477115-18809-3-git-send-email-raphael.beamonte@gmail.com> Signed-off-by: Rapha?l Beamonte --- tests/unit/test_utils_expand_path.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_utils_expand_path.c b/tests/unit/test_utils_expand_path.c index b79744b..bb460a2 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]); -- 1.7.10.4