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

nickm at torproject.org nickm at torproject.org
Thu May 31 20:26:22 UTC 2012


commit b86c562d76c7b0cce25a3a9f46d5d66e2eef30ff
Author: Nick Mathewson <nickm at torproject.org>
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, "/");





More information about the tor-commits mailing list