Package: cargo / 0.47.0-3

u-8713.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 8ee908d40ff21d7fca12430ca14cdaf3c454e0b3 Mon Sep 17 00:00:00 2001
From: Eric Huss <eric@huss.org>
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 a8059228d7..9c03c4acb8 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();