]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
A few more get_parent_directory tests.
authorNick Mathewson <nickm@torproject.org>
Thu, 31 May 2012 19:12:45 +0000 (15:12 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 31 May 2012 19:12:45 +0000 (15:12 -0400)
src/test/test_util.c

index 1c7c2fec23757f6d59f2408e4fc67e010bf8b90c..a393079e14dc49c98ae05d1c3462ca76aa7abf97 100644 (file)
@@ -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, "/");