Skip to content

Commit f4dc629

Browse files
committed
Fix broken test.
1 parent 27edc43 commit f4dc629

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/testsuite/check.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use cargotest::install::exe;
2+
use cargotest::is_nightly;
23
use cargotest::support::paths::CargoPathExt;
34
use cargotest::support::registry::Package;
45
use cargotest::support::{execs, project};
@@ -830,7 +831,12 @@ fn check_artifacts() {
830831
p.cargo("check").arg("--bin").arg("foo"),
831832
execs().with_status(0),
832833
);
833-
assert_that(&p.root().join("target/debug/libfoo.rmeta"), existing_file());
834+
if is_nightly() {
835+
// The nightly check can be removed once 1.27 is stable.
836+
// Bins now generate `rmeta` files.
837+
// See: https://github.com/rust-lang/rust/pull/49289
838+
assert_that(&p.root().join("target/debug/libfoo.rmeta"), existing_file());
839+
}
834840
assert_that(
835841
&p.root().join("target/debug/libfoo.rlib"),
836842
is_not(existing_file()),

0 commit comments

Comments
 (0)