Skip to content

Commit 95311e7

Browse files
committed
Stop unconditionnaly remove some UI tests directories
1 parent 5b4dbca commit 95311e7

2 files changed

Lines changed: 5 additions & 15 deletions

File tree

build_system/src/test.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,21 +1022,6 @@ where
10221022
true,
10231023
)?;
10241024
} else {
1025-
walk_dir(
1026-
rust_path.join("tests/ui"),
1027-
&mut |dir| {
1028-
let dir_name = dir.file_name().and_then(|name| name.to_str()).unwrap_or("");
1029-
if ["abi", "extern", "proc-macro", "threads-sendsync"].contains(&dir_name) {
1030-
remove_dir_all(dir).map_err(|error| {
1031-
format!("Failed to remove folder `{}`: {:?}", dir.display(), error)
1032-
})?;
1033-
}
1034-
Ok(())
1035-
},
1036-
&mut |_| Ok(()),
1037-
false,
1038-
)?;
1039-
10401025
// These two functions are used to remove files that are known to not be working currently
10411026
// with the GCC backend to reduce noise.
10421027
fn dir_handling(keep_lto_tests: bool) -> impl Fn(&Path) -> Result<(), String> {

tests/failing-ui-tests.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,8 @@ tests/ui/eii/static/default_cross_crate.rs
104104
tests/ui/eii/static/default_explicit.rs
105105
tests/ui/eii/static/default_cross_crate_explicit.rs
106106
tests/ui/explicit-tail-calls/tailcc-no-signature-restriction.rs
107+
tests/ui/abi/rust-tail-cc.rs
108+
tests/ui/abi/rust-preserve-none-cc.rs
109+
tests/ui/abi/stack-protector.rs
110+
tests/ui/extern/extern-types-field-offset.rs
111+
tests/ui/abi/stack-probes-lto.rs

0 commit comments

Comments
 (0)