Skip to content

Commit 242b261

Browse files
committed
Don't run should-fail rustc tests
These are expected to panic inside compiletest which fails when compiletest is compiled with panic=abort.
1 parent c682535 commit 242b261

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/test_rustc_tests.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ for test in $(rg --files-with-matches "lto" tests/{codegen-units,ui,incremental}
2121
rm $test
2222
done
2323

24+
# should-fail tests don't work when compiletest is compiled with panic=abort
25+
for test in $(rg --files-with-matches "//@ should-fail" tests/{codegen-units,ui,incremental}); do
26+
rm $test
27+
done
28+
2429
for test in $(rg -i --files-with-matches "//(\[\w+\])?~[^\|]*\s*ERR|//@ error-pattern:|//@(\[.*\])? build-fail|//@(\[.*\])? run-fail|-Cllvm-args" tests/ui); do
2530
rm $test
2631
done
@@ -116,8 +121,6 @@ rm -r tests/run-make/compiler-builtins # Expects lib/rustlib/src/rust to contain
116121

117122
# genuine bugs
118123
# ============
119-
rm tests/incremental/spike-neg1.rs # errors out for some reason
120-
rm tests/incremental/spike-neg2.rs # same
121124
rm -r tests/run-make/extern-fn-explicit-align # argument alignment not yet supported
122125
rm -r tests/run-make/panic-abort-eh_frame # .eh_frame emitted with panic=abort
123126

0 commit comments

Comments
 (0)