[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Add extra tests for get_parent_directory



commit 9ae7d511f4d55cf47f0d28bc121bb0460067793a
Author: Esteban Manchado Velázquez <emanchado@xxxxxxxxxxxx>
Date:   Sat Feb 11 22:43:42 2012 +0100

    Add extra tests for get_parent_directory
---
 src/test/test_util.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/test/test_util.c b/src/test/test_util.c
index f5adad9..600bdd5 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");



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits