mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
fix duplicate test failing llvm wasm tests
This commit is contained in:
parent
1f28f15773
commit
f011748526
2 changed files with 11 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue