mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-24 14:22:28 +00:00
Emulate ENOTDIR better
This commit is contained in:
parent
b76b2be2d0
commit
8d1c81ac9f
35 changed files with 80 additions and 50 deletions
|
@ -93,9 +93,10 @@ TEST(__zipos_normpath, vectors) {
|
|||
{"./", ""},
|
||||
{"..", ""},
|
||||
{"../", ""},
|
||||
{"foo/", "foo/"},
|
||||
{"../abc/def", "abc/def"},
|
||||
{"../abc/def/..", "abc"},
|
||||
{"../abc/././././def/..", "abc"},
|
||||
{"../abc/def/..", "abc/"},
|
||||
{"../abc/././././def/..", "abc/"},
|
||||
{"////../abc/def", "abc/def"},
|
||||
{"/../def", "def"},
|
||||
{"../def", "def"},
|
||||
|
@ -121,11 +122,11 @@ TEST(__zipos_normpath, vectors) {
|
|||
{"../../../a", "a"},
|
||||
{"../a../../a", "a"},
|
||||
{"cccc/abc////..////.//../", ""},
|
||||
{"aaaa/cccc/abc////..////.//../", "aaaa"},
|
||||
{"..//////.///..////..////.//////abc////.////..////def//abc/..", "def"},
|
||||
{"aaaa/cccc/abc////..////.//../", "aaaa/"},
|
||||
{"..//////.///..////..////.//////abc////.////..////def//abc/..", "def/"},
|
||||
{"////////////..//////.///..////..////.//////abc////.////..////def//abc/"
|
||||
"..",
|
||||
"def"},
|
||||
"def/"},
|
||||
};
|
||||
int fails = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue