summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2018-04-25 20:59:04 +0200
committerMike Gilbert <floppym@gentoo.org>2018-04-26 11:12:17 -0400
commitb5bd242b0ee5b96c7fe39c765caf261c1a674088 (patch)
tree18c1388468c917a2b01d605d5751008e3ef5717a /dev-db/sqlite/files
parentx11-misc/synergy: Depend on >=dev-cpp/gtest-1.8.0. (diff)
downloadgentoo-b5bd242b0ee5b96c7fe39c765caf261c1a674088.tar.gz
gentoo-b5bd242b0ee5b96c7fe39c765caf261c1a674088.tar.bz2
gentoo-b5bd242b0ee5b96c7fe39c765caf261c1a674088.zip
dev-db/sqlite: Fix zipfile2-2.0 test on some filesystems.
Closes: https://bugs.gentoo.org/653450
Diffstat (limited to 'dev-db/sqlite/files')
-rw-r--r--dev-db/sqlite/files/sqlite-3.23.1-full_archive-tests.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-db/sqlite/files/sqlite-3.23.1-full_archive-tests.patch b/dev-db/sqlite/files/sqlite-3.23.1-full_archive-tests.patch
new file mode 100644
index 00000000000..7237fbfc0f3
--- /dev/null
+++ b/dev-db/sqlite/files/sqlite-3.23.1-full_archive-tests.patch
@@ -0,0 +1,27 @@
+https://sqlite.org/src/info/893e6089c875e947
+
+--- /test/zipfile2.test
++++ /test/zipfile2.test
+@@ -52,17 +52,15 @@
+ CREATE VIRTUAL TABLE fff USING zipfile('test''zip');
+ }
+
+-if {$::tcl_platform(platform)=="windows"} {
+- set res {1 {cannot open file: testdir}}
+-} else {
+- set res {1 {error in fread()}}
+-}
+ do_test 2.0 {
+ forcedelete testdir
+ file mkdir testdir
+ execsql { CREATE VIRTUAL TABLE hhh USING zipfile('testdir') }
+- catchsql { SELECT * FROM hhh }
+-} $res
++ lindex [catchsql {
++ SELECT * FROM hhh;
++ INSERT INTO hhh(name, data) VALUES('1.txt', 'file data');
++ }] 0
++} 1
+
+
+ set archive {