From fa792166e13115b4262e8533da2839518df3bfe3 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 17 Aug 2024 17:17:12 +0200 Subject: kernel: immediately fail open() request instead of truncating the path less error prone --- src/cmd/tests/kernel/fs.c | 3 ++- 1 file changed, 2 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 a19f3fb..42b069f 100644 --- a/src/cmd/tests/kernel/fs.c +++ b/src/cmd/tests/kernel/fs.c @@ -10,8 +10,9 @@ static void test_unfinished_req(void) { test(0 <= ret); if (ret == 0) { // TODO make a similar test with all 0s passed to fs_wait + char buf[512]; struct ufs_request res; - _sys_fs_wait(NULL, 0, &res); + _sys_fs_wait(buf, sizeof(buf), &res); exit(0); } else { test(0 <= h); -- cgit v1.2.3