From: Vasudev Kamath Date: Sun, 5 Aug 2018 16:10:53 +0000 (+0530) Subject: Introduce patch to disable fetch platform specific tests X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~29 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=431276b9e51d84bd93803fce4179e51529c61a94;p=cargo.git Introduce patch to disable fetch platform specific tests --- 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