File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
src/tools/compiletest/src/directives Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -112,12 +112,7 @@ fn parse_cfg_name_directive<'a>(
112112 message: "when the target is {name}"
113113 }
114114 condition ! {
115- name: & [
116- Some ( & * target_cfg. os) ,
117- // If something is ignored for emscripten, it likely also needs to be
118- // ignored for wasm32-unknown-unknown.
119- ( config. target == "wasm32-unknown-unknown" ) . then_some( "emscripten" ) ,
120- ] ,
115+ name: & target_cfg. os,
121116 allowed_names: & target_cfgs. all_oses,
122117 message: "when the operating system is {name}"
123118 }
Original file line number Diff line number Diff line change @@ -729,8 +729,13 @@ fn wasm_special() {
729729 assert_eq ! (
730730 check_ignore( & config, & format!( "//@ ignore-{pattern}" ) ) ,
731731 ignore,
732- "{target} {pattern}"
732+ "target ` {target}` vs `//@ ignore- {pattern}` "
733733 ) ;
734+ assert_eq ! (
735+ check_ignore( & config, & format!( "//@ only-{pattern}" ) ) ,
736+ !ignore,
737+ "target `{target}` vs `//@ only-{pattern}`"
738+ )
734739 }
735740}
736741
You can’t perform that action at this time.
0 commit comments