[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
405/470: gnu: rust: Fix test suite on some architectures.
From: |
guix-commits |
Subject: |
405/470: gnu: rust: Fix test suite on some architectures. |
Date: |
Thu, 16 Mar 2023 03:02:25 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 4cfff2fa7ab80a79b90d3b51f4258dfe843646f0
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Mar 8 22:07:15 2023 +0200
gnu: rust: Fix test suite on some architectures.
* gnu/packages/rust.scm (rust)[arguments]: In the custom
'patch-process-tests phase rewrite the logic for skipping some tests so
that it doesn't cause errors on aarch64-linux or riscv64-linux.
---
gnu/packages/rust.scm | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 2f3df125c8..b0fb49ae46 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -766,13 +766,11 @@ safety and thread safety guarantees.")
(substitute* "library/std/src/process/tests.rs"
(("\"/bin/sh\"")
(string-append "\"" bash "/bin/sh\"")))
+ ;; The three tests which are known to fail upstream on QEMU
+ ;; emulation on aarch64 and riscv64 also fail on x86_64 in
Guix's
+ ;; build system. Skip them on all builds.
(substitute*
"library/std/src/sys/unix/process/process_common/tests.rs"
- (("fn test_process_mask")
- "#[ignore]\nfn test_process_mask")
- (("fn test_process_group_posix_spawn")
- "#[ignore]\nfn test_process_group_posix_spawn")
- (("fn test_process_group_no_posix_spawn")
- "#[ignore]\nfn test_process_group_no_posix_spawn")))))
+ (("target_arch = \"arm\",") "target_os = \"linux\",")))))
(add-after 'unpack 'disable-interrupt-tests
(lambda _
;; This test hangs in the build container; disable it.
- 361/470: gnu: rust-num-rational-0.4: Update to 0.4.1., (continued)
- 361/470: gnu: rust-num-rational-0.4: Update to 0.4.1., guix-commits, 2023/03/16
- 381/470: gnu: Remove rust-crunchy-0.1., guix-commits, 2023/03/16
- 388/470: gnu: Remove rust-askama-derive-0.10., guix-commits, 2023/03/16
- 387/470: gnu: Add rust-av1-grain-0.2., guix-commits, 2023/03/16
- 413/470: gnu: rust-linked-hash-map-0.5: Update to 0.5.6., guix-commits, 2023/03/16
- 408/470: gnu: Add rust-crossterm-winapi-0.9., guix-commits, 2023/03/16
- 366/470: gnu: rust-wasm-bindgen-backend-0.2: Update to 0.2.84., guix-commits, 2023/03/16
- 368/470: gnu: rust-wasm-bindgen-macro-0.2: Update to 0.2.84., guix-commits, 2023/03/16
- 369/470: gnu: rust-wasm-bindgen-macro-support-0.2: Update to 0.2.84., guix-commits, 2023/03/16
- 403/470: gnu: gdk-pixbuf: Remove input labels., guix-commits, 2023/03/16
- 405/470: gnu: rust: Fix test suite on some architectures.,
guix-commits <=
- 401/470: gnu: gdk-pixbuf: Adjust skipped failing tests., guix-commits, 2023/03/16