diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-05-31 15:12:45 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-05-31 15:12:45 -0400 |
commit | b86c562d76c7b0cce25a3a9f46d5d66e2eef30ff (patch) | |
tree | 6f95acad451b9cde761488c18b45db64bef1289f /src | |
parent | 254504fc1494b1ca4eea14eb71bd5b4b5d0d2765 (diff) | |
download | tor-b86c562d76c7b0cce25a3a9f46d5d66e2eef30ff.tar.gz tor-b86c562d76c7b0cce25a3a9f46d5d66e2eef30ff.zip |
A few more get_parent_directory tests.
Diffstat (limited to 'src')
-rw-r--r-- | 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 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, "/"); |