Fix testing with randomized layouts enabled
This commit is contained in:
parent
13970949d1
commit
fde54c2c03
2 changed files with 3 additions and 2 deletions
|
@ -109,10 +109,12 @@ const BASE_SYSROOT_SUITE: &[TestCase] = &[
|
||||||
|
|
||||||
SYSROOT_TESTS.clean(&runner.dirs);
|
SYSROOT_TESTS.clean(&runner.dirs);
|
||||||
|
|
||||||
|
let mut target_compiler = runner.target_compiler.clone();
|
||||||
// coretests and alloctests produce a bunch of warnings. When running
|
// coretests and alloctests produce a bunch of warnings. When running
|
||||||
// in rust's CI warnings are denied, so we have to override that here.
|
// in rust's CI warnings are denied, so we have to override that here.
|
||||||
let mut target_compiler = runner.target_compiler.clone();
|
|
||||||
target_compiler.rustflags.push("--cap-lints=allow".to_owned());
|
target_compiler.rustflags.push("--cap-lints=allow".to_owned());
|
||||||
|
// The standard library may have been compiled with -Zrandomize-layout.
|
||||||
|
target_compiler.rustflags.extend(["--cfg".to_owned(), "randomized_layouts".to_owned()]);
|
||||||
|
|
||||||
if runner.is_native {
|
if runner.is_native {
|
||||||
let mut test_cmd = SYSROOT_TESTS.test(&target_compiler, &runner.dirs);
|
let mut test_cmd = SYSROOT_TESTS.test(&target_compiler, &runner.dirs);
|
||||||
|
|
|
@ -36,5 +36,4 @@ check-cfg = [
|
||||||
'cfg(no_global_oom_handling)',
|
'cfg(no_global_oom_handling)',
|
||||||
'cfg(no_rc)',
|
'cfg(no_rc)',
|
||||||
'cfg(no_sync)',
|
'cfg(no_sync)',
|
||||||
'cfg(randomized_layouts)',
|
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue