gnu: kcoreaddons: Fix broken test.

* gnu/packages/kde-frameworks.scm (kcoreaddons)[arguments]: Add build phase
"fix-broken-test".
This commit is contained in:
Ricardo Wurmus 2019-01-25 15:35:07 +01:00
parent fd007bebdd
commit 81cf0174b5
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 8 additions and 0 deletions

View File

@ -5,6 +5,7 @@
;;; Copyright © 2016 David Craven <david@craven.ch>
;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2019 Ricardo Wurmus <rekado@elephly.net>
;;;
;;; This file is part of GNU Guix.
;;;
@ -578,6 +579,13 @@ propagate their changes to their respective configuration files.")
(lambda _
(display "[test_channels]\n*\n")))
#t))
;; See upstream commit ee424e9b62368485bba4193053cabb553a1d268e
(add-after 'unpack 'fix-broken-test
(lambda _
(substitute* "autotests/kdirwatch_unittest.cpp"
(("QVERIFY\\(waitForRecreationSignal\\(watch, existingFile\\)\\);" m)
(string-append m "\nwaitUntilNewSecond();")))
#t))
(add-before 'check 'check-setup
(lambda _
(setenv "HOME" (getcwd))