Introduce patch to disable fetch platform specific tests
authorVasudev Kamath <vasudev@copyninja.info>
Sun, 5 Aug 2018 16:10:53 +0000 (21:40 +0530)
committerVasudev Kamath <vasudev@copyninja.info>
Sun, 5 Aug 2018 16:10:53 +0000 (21:40 +0530)
debian/patches/2005_disable_fetch_cross_tests.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/2005_disable_fetch_cross_tests.patch b/debian/patches/2005_disable_fetch_cross_tests.patch
new file mode 100644 (file)
index 0000000..0f88677
--- /dev/null
@@ -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 <vasudev@copyninja.info>
+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",
index 4b77c485c1a39d560a0af1baa2b5bc995928d88b..276c5af3c496c44fbf800e4c3745459401c84e85 100644 (file)
@@ -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