From bf4cbc830d78774ac00d9501c45e8b84d0ae9ae7 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 29 Jun 2022 21:52:15 +0200 Subject: kernel/vfs: add the OPEN_CREATE flag --- src/init/tests/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/init/tests/main.c') 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); } -- cgit v1.2.3