mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-25 14:52:28 +00:00
Emulate ENOTDIR better
This commit is contained in:
parent
b76b2be2d0
commit
8d1c81ac9f
35 changed files with 80 additions and 50 deletions
|
@ -47,6 +47,9 @@ TEST(open, enoent) {
|
|||
|
||||
TEST(open, enotdir) {
|
||||
ASSERT_SYS(0, 0, touch("o", 0644));
|
||||
ASSERT_SYS(ENOTDIR, -1, open("o/", O_RDONLY));
|
||||
ASSERT_SYS(ENOTDIR, -1, open("o/.", O_RDONLY));
|
||||
ASSERT_SYS(ENOTDIR, -1, open("o/./", O_RDONLY));
|
||||
ASSERT_SYS(ENOTDIR, -1, open("o/doesnotexist", O_RDONLY));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue