Skip to content

Commit

Permalink
avoid edge case where final frame is popped
Browse files Browse the repository at this point in the history
  • Loading branch information
joonazan committed Jun 4, 2024
1 parent 8d36eb8 commit d9e4d8b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/single_instruction_test/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,9 @@ impl<'a> Arbitrary<'a> for VirtualMachine {
register_pointer_flags,
flags: u.arbitrary()?,
current_frame: u.arbitrary()?,
previous_frames: if u.arbitrary()? {
vec![(0, Callframe::dummy())]
} else {
vec![]
},
// Exiting the final frame is different in vm2 on purpose,
// so always generate two frames to avoid that.
previous_frames: vec![(0, Callframe::dummy())],
heaps: u.arbitrary()?,
transaction_number: u.arbitrary()?,
context_u128: u.arbitrary()?,
Expand Down

0 comments on commit d9e4d8b

Please sign in to comment.