Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: third_party/sqlite/sqlite-src-3080704/test/pageropt.test

Issue 883353008: [sql] Import reference version of SQLite 3.8.7.4. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hold back encoding change which is messing up patch. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/sqlite/sqlite-src-3080704/test/pageropt.test
diff --git a/third_party/sqlite/src/test/pageropt.test b/third_party/sqlite/sqlite-src-3080704/test/pageropt.test
similarity index 96%
copy from third_party/sqlite/src/test/pageropt.test
copy to third_party/sqlite/sqlite-src-3080704/test/pageropt.test
index 1c634f6443c81ab34489d6425f4a31cb7018a60b..7191661ba5d7cd4e599c9129bbda142b87f4d9d5 100644
--- a/third_party/sqlite/src/test/pageropt.test
+++ b/third_party/sqlite/sqlite-src-3080704/test/pageropt.test
@@ -17,7 +17,7 @@
set testdir [file dirname $argv0]
source $testdir/tester.tcl
-ifcapable {!pager_pragmas||secure_delete} {
+ifcapable {!pager_pragmas||secure_delete||direct_read} {
finish_test
return
}
@@ -87,12 +87,17 @@ do_test pageropt-1.4 {
# But if the other thread modifies the database, then the cache
# must refill.
#
+ifcapable mmap {
+ set x [expr {[permutation]=="mmap" ? 1 : 6}]
+} else {
+ set x 6
+}
do_test pageropt-1.5 {
db2 eval {CREATE TABLE t2(y)}
pagercount_sql {
SELECT hex(x) FROM t1
}
-} [list 6 0 0 $blobcontent]
+} [list $x 0 0 $blobcontent]
do_test pageropt-1.6 {
pagercount_sql {
SELECT hex(x) FROM t1
« no previous file with comments | « third_party/sqlite/sqlite-src-3080704/test/pagerfault3.test ('k') | third_party/sqlite/sqlite-src-3080704/test/pagesize.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698