From 8ee908d40ff21d7fca12430ca14cdaf3c454e0b3 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Fri, 18 Sep 2020 12:28:33 -0700 Subject: [PATCH] Add cross check to filters_target test. --- tests/testsuite/tree.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/testsuite/tree.rs b/tests/testsuite/tree.rs index a8059228d7f..9c03c4acb81 100644 --- a/tests/testsuite/tree.rs +++ b/tests/testsuite/tree.rs @@ -1,6 +1,6 @@ //! Tests for the `cargo tree` command. -use cargo_test_support::cross_compile::alternate; +use cargo_test_support::cross_compile::{self, alternate}; use cargo_test_support::registry::{Dependency, Package}; use cargo_test_support::{basic_manifest, git, project, rustc_host, Project}; @@ -324,6 +324,9 @@ a v0.1.0 ([..]/foo) #[cargo_test] fn filters_target() { // --target flag + if cross_compile::disabled() { + return; + } Package::new("targetdep", "1.0.0").publish(); Package::new("hostdep", "1.0.0").publish(); Package::new("devdep", "1.0.0").publish();