File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -45,3 +45,7 @@ colored = "2"
4545# This crate uses #[feature(rustc_private)].
4646# See https://github.com/rust-analyzer/rust-analyzer/pull/7891
4747rustc_private = true
48+
49+ [[test ]]
50+ name = " compiletest"
51+ harness = false
Original file line number Diff line number Diff line change 1- #![ feature( custom_test_frameworks) ]
2- // Custom test runner, to avoid libtest being wrapped around compiletest which wraps libtest.
3- #![ test_runner( test_runner) ]
4-
51use std:: env;
62use std:: path:: PathBuf ;
73
@@ -83,7 +79,7 @@ fn get_target() -> String {
8379 env:: var ( "MIRI_TEST_TARGET" ) . unwrap_or_else ( |_| get_host ( ) )
8480}
8581
86- fn test_runner ( _tests : & [ & ( ) ] ) {
82+ fn main ( ) {
8783 // Add a test env var to do environment communication tests.
8884 env:: set_var ( "MIRI_ENV_VAR_TEST" , "0" ) ;
8985 // Let the tests know where to store temp files (they might run for a different target, which can make this hard to find).
You can’t perform that action at this time.
0 commit comments