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 |