From 9ae7d511f4d55cf47f0d28bc121bb0460067793a Mon Sep 17 00:00:00 2001 From: Esteban Manchado Velázquez Date: Sat, 11 Feb 2012 22:43:42 +0100 Subject: Add extra tests for get_parent_directory --- src/test/test_util.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/test/test_util.c') diff --git a/src/test/test_util.c b/src/test/test_util.c index f5adad9390..600bdd5b47 100644 --- a/src/test/test_util.c +++ b/src/test/test_util.c @@ -1667,12 +1667,18 @@ test_util_parent_dir(void *ptr) T("/home/wombat", 0, "/home/wombat/knish/"); T("/home/wombat", 0, "/home/wombat/knish///"); T("./home/wombat", 0, "./home/wombat/knish/"); +#if 0 + T("/", 0, "/home"); + T("/", 0, "/home//"); +#endif T(".", 0, "./wombat"); T(".", 0, "./wombat/"); T(".", 0, "./wombat//"); T("wombat", 0, "wombat/foo"); T("wombat/..", 0, "wombat/../foo"); T("wombat/../", 0, "wombat/..//foo"); /* Is this correct? */ + T("wombat/.", 0, "wombat/./foo"); + T("wombat/./", 0, "wombat/.//foo"); /* Is this correct? */ T("wombat", 0, "wombat/..//"); T("wombat", 0, "wombat/foo/"); T("wombat", 0, "wombat/.foo"); -- cgit v1.2.3-54-g00ecf