From: Eric Huss Date: Thu, 3 May 2018 00:15:11 +0000 (-0700) Subject: Fix broken test. X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2^2~41^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f4dc629d9e2c3dee8777d1b80ab8b28e01d6b3ba;p=cargo.git Fix broken test. --- diff --git a/tests/testsuite/check.rs b/tests/testsuite/check.rs index b4c523bfd..cf20db7d0 100644 --- a/tests/testsuite/check.rs +++ b/tests/testsuite/check.rs @@ -1,4 +1,5 @@ use cargotest::install::exe; +use cargotest::is_nightly; use cargotest::support::paths::CargoPathExt; use cargotest::support::registry::Package; use cargotest::support::{execs, project}; @@ -830,7 +831,12 @@ fn check_artifacts() { p.cargo("check").arg("--bin").arg("foo"), execs().with_status(0), ); - assert_that(&p.root().join("target/debug/libfoo.rmeta"), existing_file()); + if is_nightly() { + // The nightly check can be removed once 1.27 is stable. + // Bins now generate `rmeta` files. + // See: https://github.com/rust-lang/rust/pull/49289 + assert_that(&p.root().join("target/debug/libfoo.rmeta"), existing_file()); + } assert_that( &p.root().join("target/debug/libfoo.rlib"), is_not(existing_file()),