From 037c9d652b9b0a61980c6a79b10b7f8e203ccd5a Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 9 Jan 2020 13:26:29 -0800 Subject: [PATCH] Fix expected trap messages. --- tests/custom_signal_handler.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/custom_signal_handler.rs b/tests/custom_signal_handler.rs index 3bea15adf7..0b45f69f0a 100644 --- a/tests/custom_signal_handler.rs +++ b/tests/custom_signal_handler.rs @@ -104,7 +104,7 @@ mod tests { println!("calling read_out_of_bounds..."); let trap = invoke_export(&instance, &data, "read_out_of_bounds").unwrap_err(); assert!(trap.root_cause().to_string().starts_with( - "trapped: Ref(Trap { message: \"wasm trap: out of bounds memory access" + "trapped: Trap { message: \"call error: wasm trap: out of bounds memory access" )); } @@ -129,7 +129,7 @@ mod tests { let trap = read_out_of_bounds_func.borrow().call(&[]).unwrap_err(); assert!(trap .message() - .starts_with("wasm trap: out of bounds memory access")); + .starts_with("call error: wasm trap: out of bounds memory access")); } }