Skip to content

Commit d55e95f

Browse files
committed
Fix the test error
1 parent cf692d6 commit d55e95f

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
@@ -632,7 +632,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
632632
};
633633

634634
let _result = match offset {
635-
None => fd.write(&fd, communicate, &bytes, dest, this),
635+
None => fd.write(&fd, communicate, &bytes, dest, this)?,
636636
Some(offset) => {
637637
let Ok(offset) = u64::try_from(offset) else {
638638
let einval = this.eval_libc("EINVAL");
@@ -641,7 +641,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
641641
this.write_scalar(res, dest)?;
642642
return Ok(());
643643
};
644-
fd.pwrite(communicate, &bytes, offset, dest, this)
644+
fd.pwrite(communicate, &bytes, offset, dest, this)?
645645
}
646646
};
647647
Ok(())

0 commit comments

Comments
 (0)