Revert "conditionally automatically show wasm-objdump in terminal"

This reverts commit 64bf7253d1.
This commit is contained in:
Folkert 2021-11-21 19:31:29 +01:00
parent 64bf7253d1
commit f6b5087d29

View file

@ -132,23 +132,14 @@ pub fn helper_wasm<'a, T: Wasm32TestResult>(
let path = format!("{}/test-{:016x}.wasm", dir, src_hash); let path = format!("{}/test-{:016x}.wasm", dir, src_hash);
// Print out filename (appears just after test name) // Print out filename (appears just after test name)
println!("dumping file {:?}", &path); println!("dumping file {:?}", path);
match std::fs::File::create(&path) { match std::fs::File::create(path) {
Err(e) => eprintln!("Problem creating wasm debug file: {:?}", e), Err(e) => eprintln!("Problem creating wasm debug file: {:?}", e),
Ok(mut file) => { Ok(mut file) => {
file.write_all(&module_bytes).unwrap(); file.write_all(&module_bytes).unwrap();
} }
} }
if false {
let output = std::process::Command::new("wasm-objdump")
.args(&["-xd", &path])
.output()
.unwrap();
std::io::stderr().write_all(&output.stdout).unwrap();
}
} }
// now, do wasmer stuff // now, do wasmer stuff