summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2018-07-15 18:23:16 +0900
committerAkinori Hattori <hattya@gentoo.org>2018-07-15 18:23:16 +0900
commitd4f9cf472e99ff8983f73a4f093fd8c7efe7611b (patch)
treeca824cd802cc9a622cbca336d53723ebfcb9c40a /dev-scheme
parentdev-scheme/gauche-qdbm: fix warning in depot.stub (diff)
downloadgentoo-d4f9cf472e99ff8983f73a4f093fd8c7efe7611b.tar.gz
gentoo-d4f9cf472e99ff8983f73a4f093fd8c7efe7611b.tar.bz2
gentoo-d4f9cf472e99ff8983f73a4f093fd8c7efe7611b.zip
dev-scheme/gauche-qdbm: fix tests
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'dev-scheme')
-rw-r--r--dev-scheme/gauche-qdbm/files/gauche-qdbm-test.patch13
-rw-r--r--dev-scheme/gauche-qdbm/gauche-qdbm-0.2-r1.ebuild1
2 files changed, 14 insertions, 0 deletions
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
index 00000000000..2153c8978fe
--- /dev/null
+++ b/dev-scheme/gauche-qdbm/files/gauche-qdbm-test.patch
@@ -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.
diff --git a/dev-scheme/gauche-qdbm/gauche-qdbm-0.2-r1.ebuild b/dev-scheme/gauche-qdbm/gauche-qdbm-0.2-r1.ebuild
index d05007bfdd6..8bfec2a242d 100644
--- a/dev-scheme/gauche-qdbm/gauche-qdbm-0.2-r1.ebuild
+++ b/dev-scheme/gauche-qdbm/gauche-qdbm-0.2-r1.ebuild
@@ -23,6 +23,7 @@ S="${WORKDIR}/${MY_P}"
PATCHES=(
"${FILESDIR}"/${PN}-gauche-package.patch
+ "${FILESDIR}"/${PN}-test.patch
"${FILESDIR}"/${PN}-undefined-reference.patch
)