From: Nick Mathewson Date: Thu, 31 May 2012 19:12:45 +0000 (-0400) Subject: A few more get_parent_directory tests. X-Git-Tag: tor-0.2.3.16-alpha~26^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b86c562d76c7b0cce25a3a9f46d5d66e2eef30ff;p=thirdparty%2Ftor.git A few more get_parent_directory tests. --- diff --git a/src/test/test_util.c b/src/test/test_util.c index 1c7c2fec23..a393079e14 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, "/");