Skip to content

Commit 5544f5d

Browse files
committed
Remove passing tests from failing-ui-tests.txt
1 parent a949fa1 commit 5544f5d

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

build_system/src/test.rs

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -910,6 +910,7 @@ fn test_rustc_inner<F>(
910910
prepare_files_callback: F,
911911
run_error_pattern_test: bool,
912912
test_type: &str,
913+
run_ignored_tests: bool,
913914
) -> Result<(), String>
914915
where
915916
F: Fn(&Path) -> Result<bool, String>,
@@ -1061,30 +1062,34 @@ where
10611062

10621063
env.get_mut("RUSTFLAGS").unwrap().clear();
10631064

1064-
run_command_with_output_and_env(
1065-
&[
1066-
&"./x.py",
1067-
&"test",
1068-
&"--run",
1069-
&"always",
1070-
&"--stage",
1071-
&"0",
1072-
&"--set",
1073-
&"build.compiletest-allow-stage0=true",
1074-
&format!("tests/{test_type}"),
1075-
&"--compiletest-rustc-args",
1076-
&rustc_args,
1077-
],
1078-
Some(&rust_path),
1079-
Some(&env),
1080-
)?;
1065+
let test_dir = format!("tests/{test_type}");
1066+
let mut command: Vec<&dyn AsRef<OsStr>> = vec![
1067+
&"./x.py",
1068+
&"test",
1069+
&"--run",
1070+
&"always",
1071+
&"--stage",
1072+
&"0",
1073+
&"--set",
1074+
&"build.compiletest-allow-stage0=true",
1075+
&test_dir,
1076+
&"--compiletest-rustc-args",
1077+
&rustc_args,
1078+
];
1079+
1080+
if run_ignored_tests {
1081+
command.push(&"--");
1082+
command.push(&"--ignored");
1083+
}
1084+
1085+
run_command_with_output_and_env(&command, Some(&rust_path), Some(&env))?;
10811086
Ok(())
10821087
}
10831088

10841089
fn test_rustc(env: &Env, args: &TestArg) -> Result<(), String> {
1085-
test_rustc_inner(env, args, |_| Ok(false), false, "run-make")?;
1086-
test_rustc_inner(env, args, |_| Ok(false), false, "run-make-cargo")?;
1087-
test_rustc_inner(env, args, |_| Ok(false), false, "ui")
1090+
test_rustc_inner(env, args, |_| Ok(false), false, "run-make", false)?;
1091+
test_rustc_inner(env, args, |_| Ok(false), false, "run-make-cargo", false)?;
1092+
test_rustc_inner(env, args, |_| Ok(false), false, "ui", false)
10881093
}
10891094

10901095
fn test_failing_rustc(env: &Env, args: &TestArg) -> Result<(), String> {
@@ -1094,6 +1099,7 @@ fn test_failing_rustc(env: &Env, args: &TestArg) -> Result<(), String> {
10941099
retain_files_callback("tests/failing-run-make-tests.txt", "run-make"),
10951100
false,
10961101
"run-make",
1102+
true,
10971103
);
10981104

10991105
let run_make_cargo_result = test_rustc_inner(
@@ -1102,6 +1108,7 @@ fn test_failing_rustc(env: &Env, args: &TestArg) -> Result<(), String> {
11021108
retain_files_callback("tests/failing-run-make-tests.txt", "run-make-cargo"),
11031109
false,
11041110
"run-make",
1111+
true,
11051112
);
11061113

11071114
let ui_result = test_rustc_inner(
@@ -1110,6 +1117,7 @@ fn test_failing_rustc(env: &Env, args: &TestArg) -> Result<(), String> {
11101117
retain_files_callback("tests/failing-ui-tests.txt", "ui"),
11111118
false,
11121119
"ui",
1120+
true,
11131121
);
11141122

11151123
run_make_result.and(run_make_cargo_result).and(ui_result)
@@ -1122,20 +1130,23 @@ fn test_successful_rustc(env: &Env, args: &TestArg) -> Result<(), String> {
11221130
remove_files_callback("tests/failing-ui-tests.txt", "ui"),
11231131
false,
11241132
"ui",
1133+
false,
11251134
)?;
11261135
test_rustc_inner(
11271136
env,
11281137
args,
11291138
remove_files_callback("tests/failing-run-make-tests.txt", "run-make"),
11301139
false,
11311140
"run-make",
1141+
false,
11321142
)?;
11331143
test_rustc_inner(
11341144
env,
11351145
args,
11361146
remove_files_callback("tests/failing-run-make-tests.txt", "run-make-cargo"),
11371147
false,
11381148
"run-make-cargo",
1149+
false,
11391150
)
11401151
}
11411152

@@ -1146,6 +1157,7 @@ fn test_failing_ui_pattern_tests(env: &Env, args: &TestArg) -> Result<(), String
11461157
remove_files_callback("tests/failing-ice-tests.txt", "ui"),
11471158
true,
11481159
"ui",
1160+
false,
11491161
)
11501162
}
11511163

tests/failing-ui-tests.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
tests/ui/allocator/no_std-alloc-error-handler-custom.rs
2-
tests/ui/allocator/no_std-alloc-error-handler-default.rs
31
tests/ui/asm/may_unwind.rs
42
tests/ui/asm/x86_64/may_unwind.rs
53
tests/ui/drop/dynamic-drop-async.rs
@@ -17,7 +15,6 @@ tests/ui/panic-runtime/link-to-abort.rs
1715
tests/ui/parser/unclosed-delimiter-in-dep.rs
1816
tests/ui/consts/missing_span_in_backtrace.rs
1917
tests/ui/drop/dynamic-drop.rs
20-
tests/ui/rfcs/rfc-2091-track-caller/std-panic-locations.rs
2118
tests/ui/simd/issue-17170.rs
2219
tests/ui/simd/issue-39720.rs
2320
tests/ui/drop/panic-during-drop-14875.rs
@@ -31,11 +28,9 @@ tests/ui/coroutine/resume-after-return.rs
3128
tests/ui/simd/masked-load-store.rs
3229
tests/ui/simd/repr_packed.rs
3330
tests/ui/async-await/in-trait/dont-project-to-specializable-projection.rs
34-
tests/ui/consts/try-operator.rs
3531
tests/ui/coroutine/unwind-abort-mix.rs
3632
tests/ui/consts/issue-miri-1910.rs
3733
tests/ui/consts/const_cmp_type_id.rs
38-
tests/ui/consts/issue-73976-monomorphic.rs
3934
tests/ui/consts/issue-94675.rs
4035
tests/ui/traits/const-traits/const-drop-fail.rs
4136
tests/ui/runtime/on-broken-pipe/child-processes.rs
@@ -53,7 +48,6 @@ tests/ui/sanitizer/cfi/virtual-auto.rs
5348
tests/ui/sanitizer/cfi/sized-associated-ty.rs
5449
tests/ui/sanitizer/cfi/can-reveal-opaques.rs
5550
tests/ui/sanitizer/kcfi-mangling.rs
56-
tests/ui/statics/const_generics.rs
5751
tests/ui/backtrace/dylib-dep.rs
5852
tests/ui/delegation/fn-header.rs
5953
tests/ui/consts/const-eval/parse_ints.rs
@@ -74,13 +68,7 @@ tests/ui/codegen/equal-pointers-unequal/strict-provenance/zero.rs
7468
tests/ui/simd/simd-bitmask-notpow2.rs
7569
tests/ui/codegen/StackColoring-not-blowup-stack-issue-40883.rs
7670
tests/ui/numbers-arithmetic/u128-as-f32.rs
77-
tests/ui/lto/all-crates.rs
78-
tests/ui/uninhabited/uninhabited-transparent-return-abi.rs
79-
tests/ui/coroutine/panic-drops-resume.rs
80-
tests/ui/coroutine/panic-drops.rs
81-
tests/ui/coroutine/panic-safe.rs
8271
tests/ui/process/nofile-limit.rs
83-
tests/ui/simd/intrinsic/generic-arithmetic-pass.rs
8472
tests/ui/linking/no-gc-encapsulation-symbols.rs
8573
tests/ui/panics/unwind-force-no-unwind-tables.rs
8674
tests/ui/attributes/fn-align-dyn.rs

0 commit comments

Comments
 (0)