dev-scheme/gauche-qdbm: fix tests
authorAkinori Hattori <hattya@gentoo.org>
Sun, 15 Jul 2018 09:23:16 +0000 (18:23 +0900)
committerAkinori Hattori <hattya@gentoo.org>
Sun, 15 Jul 2018 09:23:16 +0000 (18:23 +0900)
Package-Manager: Portage-2.3.40, Repoman-2.3.9

dev-scheme/gauche-qdbm/files/gauche-qdbm-test.patch [new file with mode: 0644]
dev-scheme/gauche-qdbm/gauche-qdbm-0.2-r1.ebuild

diff --git a/dev-scheme/gauche-qdbm/files/gauche-qdbm-test.patch b/dev-scheme/gauche-qdbm/files/gauche-qdbm-test.patch
new file mode 100644 (file)
index 0000000..2153c89
--- /dev/null
@@ -0,0 +1,13 @@
+--- a/test.scm
++++ b/test.scm
+@@ -32,8 +32,8 @@
+ (test* "qdbm-dpclosed?" #t (qdbm-dpclosed? qdbm))
+ (test* "qdbm-dpremove" #t (qdbm-dpremove "test.dbm"))
+-(test* "qdbm-innerhash" -468784272 (qdbm-dpinnerhash "key"))
+-(test* "qdbm-outerhash" -448645494 (qdbm-dpouterhash "key"))
++(test* "qdbm-innerhash" 604957552 (qdbm-dpinnerhash "key"))
++(test* "qdbm-outerhash" 625096330 (qdbm-dpouterhash "key"))
+ (test* "qdbm-primenum" 10223 (qdbm-dpprimenum 10000))
+ ;; The following is taken from ext/dbm/test.scm.
index d05007bfdd660530a9190e0626ee702f3f3d4fc7..8bfec2a242da5038136026384b66da8d008055e1 100644 (file)
@@ -23,6 +23,7 @@ S="${WORKDIR}/${MY_P}"
 
 PATCHES=(
        "${FILESDIR}"/${PN}-gauche-package.patch
+       "${FILESDIR}"/${PN}-test.patch
        "${FILESDIR}"/${PN}-undefined-reference.patch
 )