me
/
guix
Archived
1
0
Fork 0

gnu: go-google-golang-org-protobuf: Disable some failing tests.

* gnu/packages/golang.scm (go-google-golang-org-protobuf) [arguments]:
<#:phases>: Add 'disable-failing-tests phase.

Change-Id: I5f3ce75712fe6ff1cbde0f2bbc27a566710baa34
master
Sharlatan Hellseher 2024-07-22 22:39:07 +01:00
parent b70893b5c2
commit 76adf5e3ca
No known key found for this signature in database
GPG Key ID: 76D727BFF62CD2B5
1 changed files with 12 additions and 0 deletions

View File

@ -6277,6 +6277,18 @@ data serialization format.")
(list #:import-path "google.golang.org/protobuf" (list #:import-path "google.golang.org/protobuf"
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'disable-failing-tests
(lambda* (#:key tests? unpack-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" unpack-path)
(substitute* (find-files "." "\\_test.go$")
;; XXX Failing on i686-linux:
;; panic: unaligned 64-bit atomic operation
(("TestDynamicTypesExtensionNotFound")
"OffTestDynamicTypesExtensionNotFound")
(("TestDynamicTypesFilesChangeAfterCreation")
"OffTestDynamicTypesFilesChangeAfterCreation")
(("TestDynamicTypesFindExtensionByNameOrNumber")
"OffTestDynamicTypesFindExtensionByNameOrNumber")))))
;; XXX: Workaround for go-build-system's lack of Go modules ;; XXX: Workaround for go-build-system's lack of Go modules
;; support. ;; support.
(delete 'build) (delete 'build)