me
/
guix
Archived
1
0
Fork 0

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

* gnu/packages/ruby.scm (ruby-stackprof)[arguments]: Add a new
'skip-dubious-test phase.
master
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
1 changed files with 6 additions and 0 deletions

View File

@ -7731,6 +7731,12 @@ navigation capabilities to @code{pry}, using @code{byebug}.")
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-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 (add-before 'check 'build-tests
(lambda _ (lambda _
(invoke "rake" "compile")))))) (invoke "rake" "compile"))))))