gnu: ruby-sqlite3: Adjust failing test.

* gnu/packages/ruby.scm (ruby-sqlite3): Adjust test to work with SQLite 3.21.
This commit is contained in:
Marius Bakke 2018-02-16 19:09:03 +01:00
parent f6cccefed5
commit 54a93355c2
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 7 additions and 0 deletions

View File

@ -3418,6 +3418,13 @@ neither too verbose nor too minimal.")
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-before 'check 'adjust-failing-test
(lambda _
;; XXX: This test fails with SQLite versions >= 3.21.
;; See <https://github.com/sparklemotion/sqlite3-ruby/issues/226>.
(substitute* "test/test_integration_resultset.rb"
(("\"integer\", \"text\"") "\"INTEGER\", \"text\""))
#t))
(add-before 'check 'add-gemtest-file (add-before 'check 'add-gemtest-file
;; This file exists in the repository but is not distributed. ;; This file exists in the repository but is not distributed.
(lambda _ (zero? (system* "touch" ".gemtest"))))))) (lambda _ (zero? (system* "touch" ".gemtest")))))))