summaryrefslogtreecommitdiff
path: root/gnu/packages/rust.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2023-04-12 13:45:48 +0200
committerEfraim Flashner <efraim@flashner.co.il>2023-05-07 19:29:31 +0300
commit6eb2d719bc162dfa29a115cbc49222500f8b6bb1 (patch)
tree139d9059592fd9b0052e909746fe871af04c5d9b /gnu/packages/rust.scm
parent9e44426e683c9e3fedb35a85c134baf4845b3c92 (diff)
gnu: rust: Disable tests that fail on aarch64.
* gnu/packages/rust.scm (rust)[arguments]: Add phase 'disable-tests-broken-on-aarch64.
Diffstat (limited to 'gnu/packages/rust.scm')
-rw-r--r--gnu/packages/rust.scm18
1 files changed, 18 insertions, 0 deletions
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 20db7d4968..bd054c038b 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -759,6 +759,24 @@ safety and thread safety guarantees.")
"src/tools/cargo/tests/testsuite/init/mercurial_autodetect/mod.rs"
(("fn mercurial_autodetect")
"#[ignore]\nfn mercurial_autodetect"))))
+ (add-after 'unpack 'disable-tests-broken-on-aarch64
+ (lambda _
+ (with-directory-excursion "src/tools/cargo/tests/testsuite/"
+ (substitute* "build_script_extra_link_arg.rs"
+ (("^fn build_script_extra_link_arg_bin_single" m)
+ (string-append "#[ignore]\n" m)))
+ (substitute* "build_script.rs"
+ (("^fn env_test" m)
+ (string-append "#[ignore]\n" m)))
+ (substitute* "collisions.rs"
+ (("^fn collision_doc_profile_split" m)
+ (string-append "#[ignore]\n" m)))
+ (substitute* "concurrent.rs"
+ (("^fn no_deadlock_with_git_dependencies" m)
+ (string-append "#[ignore]\n" m)))
+ (substitute* "features2.rs"
+ (("^fn dep_with_optional_host_deps_activated" m)
+ (string-append "#[ignore]\n" m))))))
(add-after 'unpack 'patch-command-exec-tests
;; This test suite includes some tests that the stdlib's
;; `Command` execution properly handles in situations where