Skip to content

Commit 3587059

Browse files
committed
Fix the test error
1 parent 030783e commit 3587059

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shims/unix/fd.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
633633
};
634634

635635
let _result = match offset {
636-
None => fd.write(&fd, communicate, &bytes, dest, this),
636+
None => fd.write(&fd, communicate, &bytes, dest, this)?,
637637
Some(offset) => {
638638
let Ok(offset) = u64::try_from(offset) else {
639639
let einval = this.eval_libc("EINVAL");
@@ -642,7 +642,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
642642
this.write_scalar(res, dest)?;
643643
return Ok(());
644644
};
645-
fd.pwrite(communicate, &bytes, offset, dest, this)
645+
fd.pwrite(communicate, &bytes, offset, dest, this)?
646646
}
647647
};
648648
Ok(())

0 commit comments

Comments
 (0)