Finschia / cosmwasm

Fast and reusable WebAssembly smart contract runtime(and library) for finschia-sdk.
Apache License 2.0
27 stars 14 forks source link

a test fails in dynamic_link branch in some environment #238

Closed loloicci closed 2 years ago

loloicci commented 2 years ago

commit: 8501d46be993397c9a577699c2853d271e34d69d

environment:

$ rustup default  
1.57.0-x86_64-apple-darwin (default)

error:

failures:

---- dynamic_link::tests::dynamic_link_callee_contract_fails stdout ----
thread 'dynamic_link::tests::dynamic_link_callee_contract_fails' panicked at 'assertion failed: `(left == right)`
  left: `"func_info:{module_name:caller, name:fail, signature:[] -> []}, error:Error in dynamic link: \"Error executing Wasm: Wasmer runtime error: RuntimeError: unreachable\""`,
 right: `"func_info:{module_name:caller, name:fail, signature:[] -> []}, error:Error in dynamic link: \"Error executing Wasm: Wasmer runtime error: RuntimeError: unreachable\\n    at f_fail (<module>[1]:0x7d)\""`', packages/vm/src/dynamic_link.rs:466:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

It looks this should validate not by equals, but by starts with