diff options
author | dzwdz | 2024-02-23 21:23:40 +0100 |
---|---|---|
committer | dzwdz | 2024-02-23 21:23:40 +0100 |
commit | df889665b915d432e0205fad9cd8ccba609661c1 (patch) | |
tree | f7b34b188839455bccfcbf27426a02ece29f36c2 /src/cmd/tests/kernel | |
parent | a0413d85fa8f8336678d3a66807d69b4556afbf6 (diff) |
kernel: fix _sys_fs_wait in init
Diffstat (limited to 'src/cmd/tests/kernel')
-rw-r--r-- | src/cmd/tests/kernel/fs.c | 8 |
1 files changed, 7 insertions, 1 deletions
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); } |