me
/
guix
Archived
1
0
Fork 0

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.
master
Efraim Flashner 2023-03-08 22:07:15 +02:00
parent b9873d6c67
commit 9ac27d1b82
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 4 additions and 6 deletions

View File

@ -760,13 +760,11 @@ safety and thread safety guarantees.")
(substitute* "library/std/src/process/tests.rs" (substitute* "library/std/src/process/tests.rs"
(("\"/bin/sh\"") (("\"/bin/sh\"")
(string-append "\"" bash "/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" (substitute* "library/std/src/sys/unix/process/process_common/tests.rs"
(("fn test_process_mask") (("target_arch = \"arm\",") "target_os = \"linux\",")))))
"#[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")))))
(add-after 'unpack 'disable-interrupt-tests (add-after 'unpack 'disable-interrupt-tests
(lambda _ (lambda _
;; This test hangs in the build container; disable it. ;; This test hangs in the build container; disable it.