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

Unified Diff: third_party/sqlite/src/test/exclusive2.test

Issue 901033002: Import SQLite 3.8.7.4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Chromium changes to support SQLite 3.8.7.4. Created 5 years, 10 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/src/test/exclusive2.test
diff --git a/third_party/sqlite/src/test/exclusive2.test b/third_party/sqlite/src/test/exclusive2.test
index 18f304dbbe30b50a826d145408222f1ea7f923a0..712363e7620fd357e40dfd3c39fae86c574c138e 100644
--- a/third_party/sqlite/src/test/exclusive2.test
+++ b/third_party/sqlite/src/test/exclusive2.test
@@ -25,6 +25,14 @@ ifcapable {!pager_pragmas} {
return
}
+# Tests in this file verify that locking_mode=exclusive causes SQLite to
+# use cached pages even if the database is changed on disk. This doesn't
+# work with mmap.
+if {[permutation]=="mmap"} {
+ finish_test
+ return
+}
+
# This module does not work right if the cache spills at unexpected
# moments. So disable the soft-heap-limit.
#
@@ -259,8 +267,8 @@ do_test exclusive2-2.8 {
db close
catch {close $::fd}
-file delete -force test.db
-file delete -force test.db-journal
+forcedelete test.db
+forcedelete test.db-journal
do_test exclusive2-3.0 {
sqlite3 db test.db
@@ -293,7 +301,6 @@ do_test exclusive2-3.3 {
readPagerChangeCounter test.db
} {4}
do_test exclusive2-3.4 {
-breakpoint
execsql {
INSERT INTO t1 VALUES(randstr(200, 200));
}

Powered by Google App Engine
This is Rietveld 408576698