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

Side by Side Diff: third_party/sqlite/src/test/pcache.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 unified diff | Download patch
OLDNEW
1 # 2008 August 29 1 # 2008 August 29
2 # 2 #
3 # The author disclaims copyright to this source code. In place of 3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing: 4 # a legal notice, here is a blessing:
5 # 5 #
6 # May you do good and not evil. 6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others. 7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give. 8 # May you share freely, never taking more than you give.
9 # 9 #
10 #*********************************************************************** 10 #***********************************************************************
(...skipping 26 matching lines...) Expand all
37 do_test pcache-1.1 { 37 do_test pcache-1.1 {
38 db close 38 db close
39 pcache_stats 39 pcache_stats
40 } {current 0 max 0 min 0 recyclable 0} 40 } {current 0 max 0 min 0 recyclable 0}
41 41
42 do_test pcache-1.2 { 42 do_test pcache-1.2 {
43 sqlite3 db test.db 43 sqlite3 db test.db
44 execsql { 44 execsql {
45 PRAGMA cache_size=12; 45 PRAGMA cache_size=12;
46 PRAGMA auto_vacuum=0; 46 PRAGMA auto_vacuum=0;
47 PRAGMA mmap_size=0;
47 } 48 }
48 pcache_stats 49 pcache_stats
49 } {current 1 max 12 min 10 recyclable 1} 50 } {current 1 max 12 min 10 recyclable 1}
50 51
51 do_test pcache-1.3 { 52 do_test pcache-1.3 {
52 execsql { 53 execsql {
53 BEGIN; 54 BEGIN;
54 CREATE TABLE t1(a, b, c); 55 CREATE TABLE t1(a, b, c);
55 CREATE TABLE t2(a, b, c); 56 CREATE TABLE t2(a, b, c);
56 CREATE TABLE t3(a, b, c); 57 CREATE TABLE t3(a, b, c);
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 SELECT * FROM t5 ORDER BY a; SELECT * FROM t5; 173 SELECT * FROM t5 ORDER BY a; SELECT * FROM t5;
173 SELECT * FROM t6 ORDER BY a; SELECT * FROM t6; 174 SELECT * FROM t6 ORDER BY a; SELECT * FROM t6;
174 SELECT * FROM t7 ORDER BY a; SELECT * FROM t7; 175 SELECT * FROM t7 ORDER BY a; SELECT * FROM t7;
175 SELECT * FROM t8 ORDER BY a; SELECT * FROM t8; 176 SELECT * FROM t8 ORDER BY a; SELECT * FROM t8;
176 SELECT * FROM t9 ORDER BY a; SELECT * FROM t9; 177 SELECT * FROM t9 ORDER BY a; SELECT * FROM t9;
177 } 178 }
178 pcache_stats 179 pcache_stats
179 } {current 14 max 15 min 10 recyclable 14} 180 } {current 14 max 15 min 10 recyclable 14}
180 181
181 finish_test 182 finish_test
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698