gnu: ruby-stackprof: Build (more) reliably.

* gnu/packages/ruby.scm (ruby-stackprof)[arguments]: Add a new
'skip-dubious-test phase.
This commit is contained in:
Tobias Geerinckx-Rice 2021-07-26 02:51:50 +02:00
parent 900c2ca8f7
commit 11afd46519
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -7731,6 +7731,12 @@ (define-public ruby-stackprof
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'skip-dubious-test
;; This unreliable test can fail with "Expected 0 to be >= 1."
(lambda _
(substitute* "test/test_stackprof.rb"
(("def test_(cputime)" _ name)
(string-append "def skip_" name)))))
(add-before 'check 'build-tests
(lambda _
(invoke "rake" "compile"))))))