mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Add extra tests for get_parent_directory
This commit is contained in:
parent
fa1d6f812c
commit
9ae7d511f4
@ -1667,12 +1667,18 @@ test_util_parent_dir(void *ptr)
|
||||
T("/home/wombat", 0, "/home/wombat/knish/");
|
||||
T("/home/wombat", 0, "/home/wombat/knish///");
|
||||
T("./home/wombat", 0, "./home/wombat/knish/");
|
||||
#if 0
|
||||
T("/", 0, "/home");
|
||||
T("/", 0, "/home//");
|
||||
#endif
|
||||
T(".", 0, "./wombat");
|
||||
T(".", 0, "./wombat/");
|
||||
T(".", 0, "./wombat//");
|
||||
T("wombat", 0, "wombat/foo");
|
||||
T("wombat/..", 0, "wombat/../foo");
|
||||
T("wombat/../", 0, "wombat/..//foo"); /* Is this correct? */
|
||||
T("wombat/.", 0, "wombat/./foo");
|
||||
T("wombat/./", 0, "wombat/.//foo"); /* Is this correct? */
|
||||
T("wombat", 0, "wombat/..//");
|
||||
T("wombat", 0, "wombat/foo/");
|
||||
T("wombat", 0, "wombat/.foo");
|
||||
|
Loading…
Reference in New Issue
Block a user