From 431276b9e51d84bd93803fce4179e51529c61a94 Mon Sep 17 00:00:00 2001 From: Vasudev Kamath Date: Sun, 5 Aug 2018 21:40:53 +0530 Subject: [PATCH] Introduce patch to disable fetch platform specific tests --- .../2005_disable_fetch_cross_tests.patch | 30 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 31 insertions(+) create mode 100644 debian/patches/2005_disable_fetch_cross_tests.patch diff --git a/debian/patches/2005_disable_fetch_cross_tests.patch b/debian/patches/2005_disable_fetch_cross_tests.patch new file mode 100644 index 000000000..0f886774e --- /dev/null +++ b/debian/patches/2005_disable_fetch_cross_tests.patch @@ -0,0 +1,30 @@ +Description: Disable fetch tests to allow build on arm and ppc architecture + These tests are disabled to allow building on release architecture. +Author: Vasudev Kamath +Bug: https://github.com/rust-lang/cargo/issues/5864 +Last-Update: 2018-08-05 + +--- a/tests/testsuite/fetch.rs ++++ b/tests/testsuite/fetch.rs +@@ -27,8 +27,8 @@ + assert_that(p.cargo("fetch"), execs().with_status(0).with_stdout("")); + } + +-#[test] +-fn fetch_all_platform_dependencies_when_no_target_is_given() { ++#[allow(dead_code)] ++fn _fetch_all_platform_dependencies_when_no_target_is_given() { + Package::new("d1", "1.2.3") + .file( + "Cargo.toml", +@@ -87,8 +87,8 @@ + ); + } + +-#[test] +-fn fetch_platform_specific_dependencies() { ++#[allow(dead_code)] ++fn _fetch_platform_specific_dependencies() { + Package::new("d1", "1.2.3") + .file( + "Cargo.toml", diff --git a/debian/patches/series b/debian/patches/series index 4b77c485c..276c5af3c 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -3,3 +3,4 @@ 2001_use-system-libgit2.patch 2002_disable-net-tests.patch 2003_force-use-system-libssh2.patch +2005_disable_fetch_cross_tests.patch -- 2.30.2