Skip to content

Commit 619d29a

Browse files
committed
Auto merge of #848 - RalfJung:rustc-tests, r=RalfJung
disable some compile-fail tests for rustc
2 parents f9dd115 + 59190e8 commit 619d29a

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

tests/compiletest.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@ fn run_pass_miri(opt: bool) {
112112

113113
fn compile_fail_miri(opt: bool) {
114114
compile_fail("tests/compile-fail", &get_target(), opt);
115+
if rustc_test_suite().is_none() {
116+
// FIXME: Some tests disabled in rustc test suite because
117+
// they run with a debug-assertion libstd which changes the errors.
118+
// We should build our own libstd for testing, see
119+
// <https://github.com/rust-lang/rust/issues/61833>.
120+
compile_fail("tests/compile-fail-norustc", &get_target(), opt);
121+
}
115122
}
116123

117124
fn test_runner(_tests: &[&()]) {

0 commit comments

Comments
 (0)