From 59190e85429a18a88d8155eb0e3f8c1ff1d5a123 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sat, 20 Jul 2019 22:38:41 +0200 Subject: [PATCH] disable some compile-fail tests for rustc --- .../copy_nonoverlapping.rs | 0 tests/{compile-fail => compile-fail-norustc}/copy_null.rs | 0 .../copy_unaligned.rs | 0 tests/compiletest.rs | 7 +++++++ 4 files changed, 7 insertions(+) rename tests/{compile-fail => compile-fail-norustc}/copy_nonoverlapping.rs (100%) rename tests/{compile-fail => compile-fail-norustc}/copy_null.rs (100%) rename tests/{compile-fail => compile-fail-norustc}/copy_unaligned.rs (100%) diff --git a/tests/compile-fail/copy_nonoverlapping.rs b/tests/compile-fail-norustc/copy_nonoverlapping.rs similarity index 100% rename from tests/compile-fail/copy_nonoverlapping.rs rename to tests/compile-fail-norustc/copy_nonoverlapping.rs diff --git a/tests/compile-fail/copy_null.rs b/tests/compile-fail-norustc/copy_null.rs similarity index 100% rename from tests/compile-fail/copy_null.rs rename to tests/compile-fail-norustc/copy_null.rs diff --git a/tests/compile-fail/copy_unaligned.rs b/tests/compile-fail-norustc/copy_unaligned.rs similarity index 100% rename from tests/compile-fail/copy_unaligned.rs rename to tests/compile-fail-norustc/copy_unaligned.rs diff --git a/tests/compiletest.rs b/tests/compiletest.rs index 302c080a52e..16311d0749b 100644 --- a/tests/compiletest.rs +++ b/tests/compiletest.rs @@ -112,6 +112,13 @@ fn run_pass_miri(opt: bool) { fn compile_fail_miri(opt: bool) { compile_fail("tests/compile-fail", &get_target(), opt); + if rustc_test_suite().is_none() { + // FIXME: Some tests disabled in rustc test suite because + // they run with a debug-assertion libstd which changes the errors. + // We should build our own libstd for testing, see + // . + compile_fail("tests/compile-fail-norustc", &get_target(), opt); + } } fn test_runner(_tests: &[&()]) { -- 2.44.0