summaryrefslogtreecommitdiff
path: root/src/cmd/tests/kernel/fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/tests/kernel/fs.c')
-rw-r--r--src/cmd/tests/kernel/fs.c8
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);
}