diff --git a/crates/test-programs/wasi-tests/src/bin/path_open_read_write.rs b/crates/test-programs/wasi-tests/src/bin/path_open_read_write.rs index a28e86c05fb5..9707275bd1aa 100644 --- a/crates/test-programs/wasi-tests/src/bin/path_open_read_write.rs +++ b/crates/test-programs/wasi-tests/src/bin/path_open_read_write.rs @@ -52,7 +52,8 @@ unsafe fn test_path_open_read_write(dir_fd: wasi::Fd) { wasi::fd_write(f_readonly, &[ciovec]) .err() .expect("read of writeonly fails"), - wasi::ERRNO_BADF + windows => wasi::ERRNO_ACCES, + unix => wasi::ERRNO_BADF ); wasi::fd_close(f_readonly).expect("close readonly"); @@ -76,7 +77,8 @@ unsafe fn test_path_open_read_write(dir_fd: wasi::Fd) { wasi::fd_read(f_writeonly, &[iovec]) .err() .expect("read of writeonly fails"), - wasi::ERRNO_BADF + windows => wasi::ERRNO_ACCES, + unix => wasi::ERRNO_BADF ); let bytes_written = wasi::fd_write(f_writeonly, &[ciovec]).expect("write to writeonly"); assert_eq!(bytes_written, write_buffer.len());