Skip to content

Commit e34d8e7

Browse files
committed
adjust tests for newer nightly
1 parent c198846 commit e34d8e7

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

tests/smoke.rs

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -814,36 +814,21 @@ fn host_twice() {
814814
run!()
815815
}
816816

817-
/// Check multi stage sysroot builds with `xargo test`
817+
/// Check we can build+run `xargo test`
818818
#[cfg(feature = "dev")]
819819
#[test]
820820
fn host_libtest() {
821821
fn run() -> Result<()> {
822822
let project = HProject::new(true)?;
823823

824-
if std::env::var("TRAVIS_RUST_VERSION").ok().map_or(false,
825-
|var| var.starts_with("nightly-"))
826-
{
827-
// Testing an old version on CI, we need a different Xargo.toml.
828-
project.xargo_toml(
824+
project.xargo_toml(
829825
"
830826
[dependencies.std]
831827
features = [\"panic_unwind\"]
832828
833-
[dependencies.test]
834-
stage = 1
835-
",
836-
)?;
837-
} else {
838-
project.xargo_toml(
839-
"
840-
[dependencies.std]
841-
features = [\"panic_unwind\"]
842-
843829
[dependencies.test]
844830
",
845-
)?;
846-
}
831+
)?;
847832

848833
project.build("test")
849834
}
@@ -889,7 +874,7 @@ features = ["panic_unwind"]
889874
890875
[patch.crates-io.cc]
891876
git = "https://github.com/alexcrichton/cc-rs"
892-
tag = "1.0.28"
877+
tag = "1.0.37"
893878
"#,
894879
)?;
895880
let stderr = project.build_and_get_stderr()?;

0 commit comments

Comments
 (0)