From ec3d2400db15e6911138d88f95cae141a9da2130 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 11 May 2024 20:55:10 +0200 Subject: kernel: remove HANDLE_NULLFS It was a dumb hack that wasn't even necessary - an error when mounting should shadow over the mountpoint anyways. --- src/cmd/tests/kernel/miscsyscall.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/cmd/tests/kernel/miscsyscall.c') diff --git a/src/cmd/tests/kernel/miscsyscall.c b/src/cmd/tests/kernel/miscsyscall.c index c7ce9e0..1317720 100644 --- a/src/cmd/tests/kernel/miscsyscall.c +++ b/src/cmd/tests/kernel/miscsyscall.c @@ -316,7 +316,11 @@ static void test_getnull(void) { test(_sys_getsize(h) == -ENOSYS); test(_sys_remove(h) == -ENOSYS); test(_sys_fs_respond(h, buf, 16, 0) == -EBADF); - test(_sys_mount(h, "/asdf", 5) == -EGENERIC); + + /* 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); close(h); close(h2); -- cgit v1.2.3