[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
247/471: gnu: rust: Fix test suite on some architectures.
From: |
guix-commits |
Subject: |
247/471: gnu: rust: Fix test suite on some architectures. |
Date: |
Wed, 3 May 2023 09:28:00 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 63c6e3d5603f8a10496f13428eaa8e5398681871
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 6672197f31..c3a581308b 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -760,13 +760,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.
- 417/471: gnu: Add rust-sdl2-0.35., (continued)
- 417/471: gnu: Add rust-sdl2-0.35., guix-commits, 2023/05/03
- 423/471: gnu: Add rust-anstyle-0.2., guix-commits, 2023/05/03
- 440/471: gnu: Add rust-ttf-parser-0.19., guix-commits, 2023/05/03
- 438/471: gnu: Add rust-jni-0.19., guix-commits, 2023/05/03
- 162/471: gnu: Remove rust-slab-0.3., guix-commits, 2023/05/03
- 173/471: gnu: Remove rust-hashlink-0.6., guix-commits, 2023/05/03
- 187/471: gnu: Add rust-ravif-0.8., guix-commits, 2023/05/03
- 232/471: gnu: Add rust-clap-complete-4., guix-commits, 2023/05/03
- 242/471: gnu: Remove rust-gl-generator-0.10., guix-commits, 2023/05/03
- 236/471: gnu: Add rust-av1-grain-0.2., guix-commits, 2023/05/03
- 247/471: gnu: rust: Fix test suite on some architectures.,
guix-commits <=
- 261/471: gnu: Add rust-test-case-2., guix-commits, 2023/05/03
- 263/471: gnu: Add rust-test-case-macros-2., guix-commits, 2023/05/03
- 265/471: gnu: Add rust-nu-ansi-term-0.46., guix-commits, 2023/05/03
- 271/471: gnu: rust-tokio-1: Update to 1.26.0., guix-commits, 2023/05/03
- 273/471: gnu: Remove rust-tokio-1.8., guix-commits, 2023/05/03
- 278/471: gnu: rust-arbitrary-1: Update to 1.2.3., guix-commits, 2023/05/03
- 277/471: gnu: rust-anyhow-1: Update to 1.0.69., guix-commits, 2023/05/03
- 275/471: gnu: rust-gif-0.11: Remove duplicate definition., guix-commits, 2023/05/03
- 288/471: gnu: Add rust-if-addrs-sys-0.3., guix-commits, 2023/05/03
- 289/471: gnu: Add rust-if-addrs-0.6., guix-commits, 2023/05/03