diff options
author | dzwdz | 2022-06-29 21:52:15 +0200 |
---|---|---|
committer | dzwdz | 2022-06-29 21:52:15 +0200 |
commit | bf4cbc830d78774ac00d9501c45e8b84d0ae9ae7 (patch) | |
tree | f302f92badf74dade9e724e37f85d1ee2dd99833 /src/init/tests/main.c | |
parent | 43de6a4d8ead1e609828ef34ad1957d34c94ee6a (diff) |
kernel/vfs: add the OPEN_CREATE flag
Diffstat (limited to 'src/init/tests/main.c')
-rw-r--r-- | src/init/tests/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init/tests/main.c b/src/init/tests/main.c index d895289..1260a35 100644 --- a/src/init/tests/main.c +++ b/src/init/tests/main.c @@ -74,7 +74,7 @@ static void test_interrupted_fs(void) { _syscall_exit(0); } else { /* parent */ _syscall_mount(h, "/", 1); - int ret = _syscall_open("/", 1); + int ret = _syscall_open("/", 1, 0); // the handler quits while handling that call - but this syscall should return anyways _syscall_exit(ret < 0 ? 0 : -1); } @@ -86,7 +86,7 @@ static void test_orphaned_fs(void) { _syscall_exit(0); } else { /* parent */ _syscall_mount(h, "/", 1); - int ret = _syscall_open("/", 1); + int ret = _syscall_open("/", 1, 0); // no handler will ever be available to handle this call - the syscall should instantly return _syscall_exit(ret < 0 ? 0 : -1); } |