From a608f3aad097712ea61047ee11d2529cf0784d32 Mon Sep 17 00:00:00 2001 From: Mark McCaskey Date: Fri, 12 Jul 2019 15:17:10 -0700 Subject: [PATCH] fix wasi test template code --- lib/wasi-tests/tests/wasitests/_common.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/wasi-tests/tests/wasitests/_common.rs b/lib/wasi-tests/tests/wasitests/_common.rs index 5a4afc91c..b22af8989 100644 --- a/lib/wasi-tests/tests/wasitests/_common.rs +++ b/lib/wasi-tests/tests/wasitests/_common.rs @@ -54,9 +54,10 @@ macro_rules! assert_wasi_output { let expected_output = include_str!($expected); assert!( - assert_cond, + output.contains(expected_output), "Output: `{}` does not contain expected output: `{}`", - output, expected_output + output, + expected_output ); }}; }