diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-04-06 13:39:47 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-04-06 13:42:53 +0000 |
| commit | 242b261585ffb70108bfd236a260e95ec4b06556 (patch) | |
| tree | ae80c2119f25cad85f2d68f4d272a5239d4f717e | |
| parent | c682535216dc6c3abac131087079c6579499e2e4 (diff) | |
| download | rust-242b261585ffb70108bfd236a260e95ec4b06556.tar.gz rust-242b261585ffb70108bfd236a260e95ec4b06556.zip | |
Don't run should-fail rustc tests
These are expected to panic inside compiletest which fails when compiletest is compiled with panic=abort.
| -rwxr-xr-x | scripts/test_rustc_tests.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/test_rustc_tests.sh b/scripts/test_rustc_tests.sh index f42a008dc0c..47e3ade2ede 100755 --- a/scripts/test_rustc_tests.sh +++ b/scripts/test_rustc_tests.sh @@ -21,6 +21,11 @@ for test in $(rg --files-with-matches "lto" tests/{codegen-units,ui,incremental} rm $test done +# should-fail tests don't work when compiletest is compiled with panic=abort +for test in $(rg --files-with-matches "//@ should-fail" tests/{codegen-units,ui,incremental}); do + rm $test +done + for test in $(rg -i --files-with-matches "//(\[\w+\])?~[^\|]*\s*ERR|//@ error-pattern:|//@(\[.*\])? build-fail|//@(\[.*\])? run-fail|-Cllvm-args" tests/ui); do rm $test done @@ -116,8 +121,6 @@ rm -r tests/run-make/compiler-builtins # Expects lib/rustlib/src/rust to contain # genuine bugs # ============ -rm tests/incremental/spike-neg1.rs # errors out for some reason -rm tests/incremental/spike-neg2.rs # same rm -r tests/run-make/extern-fn-explicit-align # argument alignment not yet supported rm -r tests/run-make/panic-abort-eh_frame # .eh_frame emitted with panic=abort |
