Browse Source

wasmtime: let serialization mismatch tests pass with `RUST_BACKTRACE=1` set (#4525)

pull/4529/head
Nick Fitzgerald 2 years ago
committed by GitHub
parent
commit
81bff71d11
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      crates/wasmtime/src/module/serialization.rs

10
crates/wasmtime/src/module/serialization.rs

@ -610,14 +610,13 @@ mod test {
match serialized.into_module(&engine) {
Ok(_) => unreachable!(),
Err(e) => assert_eq!(
format!("{:?}", e),
Err(e) => assert!(format!("{:?}", e).starts_with(
"\
compilation settings of module incompatible with native host
Caused by:
setting \"avoid_div_traps\" is configured to Bool(false) which is not supported"
),
)),
}
Ok(())
@ -637,14 +636,13 @@ Caused by:
match serialized.into_module(&engine) {
Ok(_) => unreachable!(),
Err(e) => assert_eq!(
format!("{:?}", e),
Err(e) => assert!(format!("{:?}", e).starts_with(
"\
compilation settings of module incompatible with native host
Caused by:
cannot test if target-specific flag \"not_a_flag\" is available at runtime",
),
)),
}
Ok(())

Loading…
Cancel
Save