wasmtime: let serialization mismatch tests pass with RUST_BACKTRACE=1 set (#4525)
This commit is contained in:
@@ -610,14 +610,13 @@ mod test {
|
|||||||
|
|
||||||
match serialized.into_module(&engine) {
|
match serialized.into_module(&engine) {
|
||||||
Ok(_) => unreachable!(),
|
Ok(_) => unreachable!(),
|
||||||
Err(e) => assert_eq!(
|
Err(e) => assert!(format!("{:?}", e).starts_with(
|
||||||
format!("{:?}", e),
|
|
||||||
"\
|
"\
|
||||||
compilation settings of module incompatible with native host
|
compilation settings of module incompatible with native host
|
||||||
|
|
||||||
Caused by:
|
Caused by:
|
||||||
setting \"avoid_div_traps\" is configured to Bool(false) which is not supported"
|
setting \"avoid_div_traps\" is configured to Bool(false) which is not supported"
|
||||||
),
|
)),
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
@@ -637,14 +636,13 @@ Caused by:
|
|||||||
|
|
||||||
match serialized.into_module(&engine) {
|
match serialized.into_module(&engine) {
|
||||||
Ok(_) => unreachable!(),
|
Ok(_) => unreachable!(),
|
||||||
Err(e) => assert_eq!(
|
Err(e) => assert!(format!("{:?}", e).starts_with(
|
||||||
format!("{:?}", e),
|
|
||||||
"\
|
"\
|
||||||
compilation settings of module incompatible with native host
|
compilation settings of module incompatible with native host
|
||||||
|
|
||||||
Caused by:
|
Caused by:
|
||||||
cannot test if target-specific flag \"not_a_flag\" is available at runtime",
|
cannot test if target-specific flag \"not_a_flag\" is available at runtime",
|
||||||
),
|
)),
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
Reference in New Issue
Block a user