File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -632,7 +632,9 @@ fn strip_accepts_false_to_disable_strip() {
632632 . run ( ) ;
633633}
634634
635+ // Temporarily disabled on Windows due to https://github.com/rust-lang/rust/issues/122857
635636#[ cargo_test]
637+ #[ cfg( not( windows) ) ]
636638fn strip_debuginfo_in_release ( ) {
637639 let p = project ( )
638640 . file (
@@ -656,7 +658,32 @@ fn strip_debuginfo_in_release() {
656658 . run ( ) ;
657659}
658660
661+ // Using -Cstrip=debuginfo in release mode by default is temporarily disabled on Windows due to
662+ // https://github.com/rust-lang/rust/issues/122857
659663#[ cargo_test]
664+ #[ cfg( all( target_os = "windows" , target_env = "msvc" ) ) ]
665+ fn do_not_strip_debuginfo_in_release_on_windows ( ) {
666+ let p = project ( )
667+ . file (
668+ "Cargo.toml" ,
669+ r#"
670+ [package]
671+ name = "foo"
672+ version = "0.1.0"
673+ edition = "2015"
674+ "# ,
675+ )
676+ . file ( "src/main.rs" , "fn main() {}" )
677+ . build ( ) ;
678+
679+ p. cargo ( "build --release -v" )
680+ . with_stderr_does_not_contain ( "[..]strip=debuginfo[..]" )
681+ . run ( ) ;
682+ }
683+
684+ // Temporarily disabled on Windows due to https://github.com/rust-lang/rust/issues/122857
685+ #[ cargo_test]
686+ #[ cfg( not( windows) ) ]
660687fn strip_debuginfo_without_debug ( ) {
661688 let p = project ( )
662689 . file (
Original file line number Diff line number Diff line change @@ -740,7 +740,9 @@ fn one_bin_multiple_examples() {
740740 . run ( ) ;
741741}
742742
743+ // Temporarily disabled on Windows due to https://github.com/rust-lang/rust/issues/122857
743744#[ cargo_test]
745+ #[ cfg( not( windows) ) ]
744746fn example_with_release_flag ( ) {
745747 let p = project ( )
746748 . file (
You can’t perform that action at this time.
0 commit comments