File tree 2 files changed +29
-0
lines changed
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() {
632
632
. run ( ) ;
633
633
}
634
634
635
+ // Temporarily disabled on Windows due to https://github.com/rust-lang/rust/issues/122857
635
636
#[ cargo_test]
637
+ #[ cfg( not( windows) ) ]
636
638
fn strip_debuginfo_in_release ( ) {
637
639
let p = project ( )
638
640
. file (
@@ -656,7 +658,32 @@ fn strip_debuginfo_in_release() {
656
658
. run ( ) ;
657
659
}
658
660
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
659
663
#[ cargo_test]
664
+ #[ cfg( windows) ]
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) ) ]
660
687
fn strip_debuginfo_without_debug ( ) {
661
688
let p = project ( )
662
689
. file (
Original file line number Diff line number Diff line change @@ -740,7 +740,9 @@ fn one_bin_multiple_examples() {
740
740
. run ( ) ;
741
741
}
742
742
743
+ // Temporarily disabled on Windows due to https://github.com/rust-lang/rust/issues/122857
743
744
#[ cargo_test]
745
+ #[ cfg( not( windows) ) ]
744
746
fn example_with_release_flag ( ) {
745
747
let p = project ( )
746
748
. file (
You can’t perform that action at this time.
0 commit comments