fix duplicate test failing llvm wasm tests

This commit is contained in:
Folkert 2022-07-26 18:22:05 +02:00
parent 1f28f15773
commit f011748526
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
2 changed files with 11 additions and 9 deletions

View file

@ -458,7 +458,16 @@ fn llvm_module_to_wasm_file(
.unwrap();
if !output.stderr.is_empty() {
panic!("{}", String::from_utf8_lossy(&output.stderr));
let msg = String::from_utf8_lossy(&output.stderr);
if msg.contains("wasm-ld: error: unknown file type") {
panic!(
"{}\nThis can happen if multiple tests have the same input string",
msg
);
} else {
panic!("{}", msg);
}
}
assert!(output.status.success(), "{:#?}", output);