[lttng-dev] [lttng-tools PATCH 5/5] Tests: add valid test cases to test_utils_expand_path

Raphaël Beamonte raphael.beamonte at gmail.com
Sat Nov 23 17:32:28 EST 2013


Signed-off-by: Raphaël Beamonte <raphael.beamonte at gmail.com>
---
 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




More information about the lttng-dev mailing list