Add gvisor pselect test

This commit is contained in:
Jianfeng Jiang
2024-08-09 03:53:32 +00:00
committed by Tate, Hongliang Tian
parent 8b73cc8761
commit dc124351d2
8 changed files with 75 additions and 27 deletions

View File

@ -54,7 +54,7 @@ fn do_clock_nanosleep(
) -> Result<SyscallReturn> {
let request_time = {
let timespec = read_val_from_user::<timespec_t>(request_timespec_addr)?;
Duration::from(timespec)
Duration::try_from(timespec)?
};
debug!(