From df889665b915d432e0205fad9cd8ccba609661c1 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 23 Feb 2024 21:23:40 +0100 Subject: kernel: fix _sys_fs_wait in init --- src/cmd/tests/kernel/fs.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/cmd/tests/kernel/fs.c') diff --git a/src/cmd/tests/kernel/fs.c b/src/cmd/tests/kernel/fs.c index b5684d7..449ed43 100644 --- a/src/cmd/tests/kernel/fs.c +++ b/src/cmd/tests/kernel/fs.c @@ -71,9 +71,15 @@ static void test_fs_cleanup(void) { } } +static void test_no_fs(void) { + char buf[256]; + struct ufs_request res; + test(_sys_fs_wait(buf, 256, &res) == -EPIPE); +} + void r_k_fs(void) { run_test(test_unfinished_req); run_test(test_orphaned_fs); run_test(test_fs_cleanup); - run_test(test_fs_cleanup); + run_test(test_no_fs); } -- cgit v1.2.3