diff --git a/spec/src/fixtures.rs b/spec/src/fixtures.rs index b8648da..5cbf83f 100644 --- a/spec/src/fixtures.rs +++ b/spec/src/fixtures.rs @@ -8,4 +8,6 @@ macro_rules! run_test { } run_test!("i32", wasm_i32); -run_test!("endianness", wasm_endianness); \ No newline at end of file +run_test!("endianness", wasm_endianness); +run_test!("i64", wasm_i64); +run_test!("forward", wasm_forward); \ No newline at end of file diff --git a/spec/src/run.rs b/spec/src/run.rs index d39c12f..92d7d7d 100644 --- a/spec/src/run.rs +++ b/spec/src/run.rs @@ -78,7 +78,12 @@ pub fn spec(name: &str) { .output() .expect("Failed to execute process"); - assert!(wast2wasm_output.status.success(), "wast2wasm terminated with error code"); + if !wast2wasm_output.status.success() { + println!("wasm2wast error code: {}", wast2wasm_output.status); + println!("wasm2wast stdout: {}", String::from_utf8_lossy(&wast2wasm_output.stdout)); + println!("wasm2wast stderr: {}", String::from_utf8_lossy(&wast2wasm_output.stderr)); + panic!("wasm2wast exited with status {}", wast2wasm_output.status); + } let mut f = File::open(&json_spec_path) .expect(&format!("Failed to load json file {}", &json_spec_path.to_string_lossy())); diff --git a/spec/wabt b/spec/wabt index 7425bcc..1e5b546 160000 --- a/spec/wabt +++ b/spec/wabt @@ -1 +1 @@ -Subproject commit 7425bcc31e6516375391d18a62daee4c9f3502de +Subproject commit 1e5b546c65e8fef609431e77b1b2434dbf162e6c