Skip to content

Commit 6d9f30b

Browse files
authored
Adjust error matching predicate during fuzzing (#13206)
Fuzzing over the weekend found a failure where a wasmtime "rhs" failed with a trap and a wasmtime "lhs" failed with "gc heap not big enough". This is expected to be effectively equivalent but the method of testing whether a Wasmtime error is "non deterministic", which running out of GC heap space basically is, differed slightly with some other code which led to this differential failure.
1 parent 73418eb commit 6d9f30b

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

crates/fuzzing/src/oracles/diff_wasmtime.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,7 @@ impl DiffEngine for WasmtimeEngine {
6565
}
6666

6767
fn is_non_deterministic_error(&self, err: &Error) -> bool {
68-
match err.downcast_ref::<Trap>() {
69-
Some(trap) => super::wasmtime_trap_is_non_deterministic(trap),
70-
None => false,
71-
}
68+
super::wasmtime_error_is_non_deterministic(err)
7269
}
7370
}
7471

0 commit comments

Comments
 (0)