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

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

Issue 5626002: Update sqlite to 3.7.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/third_party/sqlite/src
Patch Set: Remove misc change. Created 10 years 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
« no previous file with comments | « third_party/sqlite/src/test/lock_common.tcl ('k') | third_party/sqlite/src/test/main.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/lookaside.test
diff --git a/third_party/sqlite/src/test/lookaside.test b/third_party/sqlite/src/test/lookaside.test
index 3c445604e45d7a31336a4572894973ab7125f647..bf554941b200449ddee8996358fa272dc84911f9 100644
--- a/third_party/sqlite/src/test/lookaside.test
+++ b/third_party/sqlite/src/test/lookaside.test
@@ -21,6 +21,14 @@ ifcapable !lookaside {
return
}
+# The tests in this file configure the lookaside allocator after a
+# connection is opened. This will not work if there is any "presql"
+# configured (SQL run within the [sqlite3] wrapper in tester.tcl).
+if {[info exists ::G(perm:presql)]} {
+ finish_test
+ return
+}
+
catch {db close}
sqlite3_shutdown
sqlite3_config_pagecache 0 0
@@ -34,12 +42,14 @@ sqlite3 db test.db
do_test lookaside-1.1 {
catch {sqlite3_config_error db}
} {0}
+
do_test lookaside-1.2 {
sqlite3_db_config_lookaside db 1 18 18
} {0}
do_test lookaside-1.3 {
sqlite3_db_status db SQLITE_DBSTATUS_LOOKASIDE_USED 0
} {0 0 0}
+
do_test lookaside-1.4 {
db eval {CREATE TABLE t1(w,x,y,z);}
foreach {x y z} [sqlite3_db_status db SQLITE_DBSTATUS_LOOKASIDE_USED 0] break
« no previous file with comments | « third_party/sqlite/src/test/lock_common.tcl ('k') | third_party/sqlite/src/test/main.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698