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

[tor-commits] [tor/master] A few more get_parent_directory tests.



commit b86c562d76c7b0cce25a3a9f46d5d66e2eef30ff
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Thu May 31 15:12:45 2012 -0400

    A few more get_parent_directory tests.
---
 src/test/test_util.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/test/test_util.c b/src/test/test_util.c
index 1c7c2fe..a393079 100644
--- a/src/test/test_util.c
+++ b/src/test/test_util.c
@@ -1302,6 +1302,9 @@ test_util_parent_dir(void *ptr)
   T("/home", 0, "/");
   T("./home/wombat/knish/", 0, "./home/wombat");
   T("./wombat", 0, ".");
+  T("wombat", -1, "");
+  T("w", -1, "");
+  T("wombat/knish", 0, "wombat");
   T("", -1, "");
   T("/", 0, "/");
   T("////", 0, "/");



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