From f4dc629d9e2c3dee8777d1b80ab8b28e01d6b3ba Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Wed, 2 May 2018 17:15:11 -0700 Subject: [PATCH] Fix broken test. --- tests/testsuite/check.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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()), -- 2.30.2