Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson committed May 28, 2024
1 parent b915850 commit 3b88aa4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_resume2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ impl<Mac: SupportMachine> Syscalls<Mac> for InsertDataSyscall {
self.0
.lock()
.unwrap()
.store_bytes(machine, addr, &DATA_ID, 0, size)?;
.store_bytes(machine, addr, &DATA_ID, 0, size, 0)?;

machine.add_cycles_no_checking(100000)?;

Expand Down Expand Up @@ -634,11 +634,11 @@ pub fn test_store_bytes_twice() {
Machine::Asm(ref mut inner, ref ctx) => {
ctx.lock()
.unwrap()
.store_bytes(&mut inner.machine, 0, &DATA_ID, 2, 29186)
.store_bytes(&mut inner.machine, 0, &DATA_ID, 2, 29186, 0)
.unwrap();
ctx.lock()
.unwrap()
.store_bytes(&mut inner.machine, 0, &DATA_ID, 0, 11008)
.store_bytes(&mut inner.machine, 0, &DATA_ID, 0, 11008, 0)
.unwrap();
}
_ => unimplemented!(),
Expand Down Expand Up @@ -667,7 +667,7 @@ pub fn test_mixing_snapshot2_writes_with_machine_raw_writes() {
Machine::Asm(ref mut inner, ref ctx) => {
ctx.lock()
.unwrap()
.store_bytes(&mut inner.machine, 0, &DATA_ID, 0, 29186)
.store_bytes(&mut inner.machine, 0, &DATA_ID, 0, 29186, 0)
.unwrap();
inner
.machine
Expand Down

0 comments on commit 3b88aa4

Please sign in to comment.