From mboxrd@z Thu Jan 1 00:00:00 1970 From: raphael.beamonte@gmail.com (=?UTF-8?q?Rapha=C3=ABl=20Beamonte?=) Date: Sat, 23 Nov 2013 17:32:28 -0500 Subject: [lttng-dev] [lttng-tools PATCH 5/5] Tests: add valid test cases to test_utils_expand_path In-Reply-To: <1385245948-23011-1-git-send-email-raphael.beamonte@gmail.com> References: <20131115154539.GA6986@thessa> <1385245948-23011-1-git-send-email-raphael.beamonte@gmail.com> Message-ID: <1385245948-23011-6-git-send-email-raphael.beamonte@gmail.com> Signed-off-by: Rapha?l Beamonte --- 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