File tree Expand file tree Collapse file tree 3 files changed +21
-10
lines changed
tests/run-make/test-harness Expand file tree Collapse file tree 3 files changed +21
-10
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,6 @@ run-make/target-cpu-native/Makefile
181181run-make/target-specs/Makefile
182182run-make/target-without-atomic-cas/Makefile
183183run-make/test-benches/Makefile
184- run-make/test-harness/Makefile
185184run-make/thumb-none-cortex-m/Makefile
186185run-make/thumb-none-qemu/Makefile
187186run-make/track-path-dep-info/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ // The way test suites run can be modified using configuration flags,
2+ // ignoring certain tests while running others. This test contains two
3+ // functions, one which must run and the other which must not. The standard
4+ // output is checked to verify that the ignore configuration is doing its job,
5+ // and that output is successfully minimized with the --quiet flag.
6+ // See https://github.com/rust-lang/rust/commit/f7ebe23ae185991b0fee05b32fbb3e29b89a41bf
7+
8+ //@ ignore-cross-compile
9+ // Reason: the compiled binary is executed
10+
11+ use run_make_support:: { run, run_with_args, rustc} ;
12+
13+ fn main ( ) {
14+ rustc ( ) . arg ( "--test" ) . input ( "test-ignore-cfg.rs" ) . cfg ( "ignorecfg" ) . run ( ) ;
15+ // check that #[cfg_attr(..., ignore)] does the right thing.
16+ run ( "test-ignore-cfg" )
17+ . assert_stdout_contains ( "shouldnotignore ... ok" )
18+ . assert_stdout_contains ( "shouldignore ... ignored" ) ;
19+ run_with_args ( "test-ignore-cfg" , & [ "--quiet" ] ) . assert_stdout_contains ( "i." ) ;
20+ run_with_args ( "test-ignore-cfg" , & [ "--quiet" ] ) . assert_stdout_not_contains ( "should" ) ;
21+ }
You can’t perform that action at this time.
0 commit comments