File tree 3 files changed +21
-11
lines changed
tests/run-make/test-harness
3 files changed +21
-11
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,6 @@ run-make/mingw-export-call-convention/Makefile
106
106
run-make/mismatching-target-triples/Makefile
107
107
run-make/missing-crate-dependency/Makefile
108
108
run-make/mixing-libs/Makefile
109
- run-make/msvc-opt-minsize/Makefile
110
109
run-make/native-link-modifier-bundle/Makefile
111
110
run-make/native-link-modifier-whole-archive/Makefile
112
111
run-make/no-alloc-shim/Makefile
@@ -181,7 +180,6 @@ run-make/target-cpu-native/Makefile
181
180
run-make/target-specs/Makefile
182
181
run-make/target-without-atomic-cas/Makefile
183
182
run-make/test-benches/Makefile
184
- run-make/test-harness/Makefile
185
183
run-make/thumb-none-cortex-m/Makefile
186
184
run-make/thumb-none-qemu/Makefile
187
185
run-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