mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
windows: temporarily do not drop gen_test results
This commit is contained in:
parent
3e1ca37b9e
commit
57201db2f6
1 changed files with 5 additions and 1 deletions
|
@ -589,12 +589,16 @@ macro_rules! assert_llvm_evals_to {
|
||||||
#[allow(clippy::redundant_closure_call)]
|
#[allow(clippy::redundant_closure_call)]
|
||||||
let given = $transform(raw);
|
let given = $transform(raw);
|
||||||
assert_eq!(&given, &$expected, "LLVM test failed");
|
assert_eq!(&given, &$expected, "LLVM test failed");
|
||||||
|
|
||||||
|
// on Windows, there are issues with the drop instances of some roc_std
|
||||||
|
#[cfg(windows)]
|
||||||
|
std::mem::forget(given);
|
||||||
}
|
}
|
||||||
Err(msg) => panic!("Roc failed with message: \"{}\"", msg),
|
Err(msg) => panic!("Roc failed with message: \"{}\"", msg),
|
||||||
}
|
}
|
||||||
|
|
||||||
// artificially extend the lifetime of `lib`
|
// artificially extend the lifetime of `lib`
|
||||||
let _ = lib;
|
lib.close().unwrap();
|
||||||
};
|
};
|
||||||
|
|
||||||
($src:expr, $expected:expr, $ty:ty) => {
|
($src:expr, $expected:expr, $ty:ty) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue