Skip to content

Commit 53a0dc4

Browse files
committed
Fix tests
1 parent ab285e9 commit 53a0dc4

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

tests/testsuite/profiles.rs

+27
Original file line numberDiff line numberDiff 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))]
636638
fn 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))]
660687
fn strip_debuginfo_without_debug() {
661688
let p = project()
662689
.file(

tests/testsuite/run.rs

+2
Original file line numberDiff line numberDiff 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))]
744746
fn example_with_release_flag() {
745747
let p = project()
746748
.file(

0 commit comments

Comments
 (0)