mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-07 19:39:34 +01:00
gnu: glib: Avoid timer.c test failure on i686-linux.
* gnu/packages/glib.scm (glib)[arguments]: In 'disable-failing-tests' phase, modify "glib/tests/timer.c" on i[56]86 to address test failure.
This commit is contained in:
parent
988eb0d512
commit
35848d2c2e
1 changed files with 12 additions and 0 deletions
|
@ -231,6 +231,18 @@ shared NFS home directories.")
|
|||
(substitute* '("contenttype.c" "gdbus-address-get-session.c"
|
||||
"gdbus-peer.c" "appinfo.c" "desktop-app-info.c")
|
||||
(("[ \t]*g_test_add_func.*;") "")))
|
||||
|
||||
,@(if (let ((system (or (%current-target-system)
|
||||
(%current-system))))
|
||||
(or (string-prefix? "i686-" system)
|
||||
(string-prefix? "i586-" system)))
|
||||
;; Add the 'volatile' qualifier for doubles to avoid excess
|
||||
;; precision, which leads to test failures:
|
||||
;; <https://gitlab.gnome.org/GNOME/glib/-/issues/820>.
|
||||
'((substitute* "glib/tests/timer.c"
|
||||
(("gdouble elapsed")
|
||||
"volatile gdouble elapsed")))
|
||||
'())
|
||||
#t))
|
||||
;; Python references are not being patched in patch-phase of build,
|
||||
;; despite using python-wrapper as input. So we patch them manually.
|
||||
|
|
Loading…
Add table
Reference in a new issue