From 11afd465196d8eaf272812d9752fdadd30b82bb1 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Mon, 26 Jul 2021 02:51:50 +0200 Subject: gnu: ruby-stackprof: Build (more) reliably. * gnu/packages/ruby.scm (ruby-stackprof)[arguments]: Add a new 'skip-dubious-test phase. --- gnu/packages/ruby.scm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 6f6bd9e1bf..14197e1eab 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -7731,6 +7731,12 @@ navigation capabilities to @code{pry}, using @code{byebug}.") (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")))))) -- cgit 1.4.1