diff options
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/tests/kernel/fs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cmd/tests/kernel/fs.c b/src/cmd/tests/kernel/fs.c index 42b069f..f0444a6 100644 --- a/src/cmd/tests/kernel/fs.c +++ b/src/cmd/tests/kernel/fs.c @@ -87,8 +87,10 @@ static void test_bad_delegate(void) { struct ufs_request res; for (;;) { h = _sys_fs_wait(NULL, 0, &res); - _sys_close(0); - _sys_fs_respond(h, NULL, 0, FSR_DELEGATE); + hid_t h2 = _sys_dup(h, -1, 0); + test(h2 >= 0); + _sys_close(h2); + _sys_fs_respond(h2, NULL, 0, FSR_DELEGATE); } } else { test(0 <= h); |