diff options
author | 2018-04-25 20:59:04 +0200 | |
---|---|---|
committer | 2018-04-26 11:12:17 -0400 | |
commit | b5bd242b0ee5b96c7fe39c765caf261c1a674088 (patch) | |
tree | 18c1388468c917a2b01d605d5751008e3ef5717a /dev-db/sqlite/files | |
parent | x11-misc/synergy: Depend on >=dev-cpp/gtest-1.8.0. (diff) | |
download | gentoo-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.patch | 27 |
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 { |