summaryrefslogtreecommitdiff
path: root/src/cmd/tests/kernel/miscsyscall.c
diff options
context:
space:
mode:
authordzwdz2024-07-11 21:43:50 +0200
committerdzwdz2024-07-11 21:43:50 +0200
commited8ff1ff9c4c0f847ffc2ab4624bd999539a0890 (patch)
tree7dd5ad530f65fb09f6f0ce6c4d94efa2fc2d05d7 /src/cmd/tests/kernel/miscsyscall.c
parent8138ba97608ff0cd4e443994390f277eca3d7b28 (diff)
kernel: start cleaning up VfsRequest
* I'm being more strict about the linked list state to hopefully ensure I'm not leaking any references. * vfsreq_create was renamed to vfsreq_dispatchcopy as that name feels more clear. It copies its argument, and dispatches it. * Requests for user backends are now handled more like requests for kernel backends - there's an accept() function that accepts a request.
Diffstat (limited to 'src/cmd/tests/kernel/miscsyscall.c')
-rw-r--r--src/cmd/tests/kernel/miscsyscall.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/tests/kernel/miscsyscall.c b/src/cmd/tests/kernel/miscsyscall.c
index 883fcee..c9daaf8 100644
--- a/src/cmd/tests/kernel/miscsyscall.c
+++ b/src/cmd/tests/kernel/miscsyscall.c
@@ -318,9 +318,9 @@ static void test_getnull(void) {
test(_sys_fs_respond(h, buf, 16, 0) == -EBADF);
/* making some assumptions about the testing environment here... */
- test(_sys_open("/test", 5, OPEN_READ) != -EGENERIC);
- test(_sys_mount(h, "/test", 5) == 0);
- test(_sys_open("/test", 5, OPEN_READ) == -EGENERIC);
+ test(_sys_open("/tmp/", 5, OPEN_READ) != -ENOENT);
+ test(_sys_mount(h, "/tmp/", 5) == 0);
+ test(_sys_open("/tmp/", 5, OPEN_READ) == -ENOENT);
close(h);
close(h2);