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

Side by Side Diff: third_party/sqlite/src/test/walbak.test

Issue 2751253002: [sql] Import SQLite 3.17.0. (Closed)
Patch Set: also clang on Linux i386 Created 3 years, 9 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
« no previous file with comments | « third_party/sqlite/src/test/wal8.test ('k') | third_party/sqlite/src/test/walcksum.test » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 2010 April 22 1 # 2010 April 22
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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 INSERT INTO t1 SELECT randomblob(500), randomblob(500) FROM t1; /* 2 */ 120 INSERT INTO t1 SELECT randomblob(500), randomblob(500) FROM t1; /* 2 */
121 INSERT INTO t1 SELECT randomblob(500), randomblob(500) FROM t1; /* 4 */ 121 INSERT INTO t1 SELECT randomblob(500), randomblob(500) FROM t1; /* 4 */
122 INSERT INTO t1 SELECT randomblob(500), randomblob(500) FROM t1; /* 8 */ 122 INSERT INTO t1 SELECT randomblob(500), randomblob(500) FROM t1; /* 8 */
123 INSERT INTO t1 SELECT randomblob(500), randomblob(500) FROM t1; /* 16 */ 123 INSERT INTO t1 SELECT randomblob(500), randomblob(500) FROM t1; /* 16 */
124 INSERT INTO t1 SELECT randomblob(500), randomblob(500) FROM t1; /* 32 */ 124 INSERT INTO t1 SELECT randomblob(500), randomblob(500) FROM t1; /* 32 */
125 INSERT INTO t1 SELECT randomblob(500), randomblob(500) FROM t1; /* 64 */ 125 INSERT INTO t1 SELECT randomblob(500), randomblob(500) FROM t1; /* 64 */
126 COMMIT; 126 COMMIT;
127 } 127 }
128 } {} 128 } {}
129 do_test walbak-2.2 { 129 do_test walbak-2.2 {
130 forcedelete abc.db
130 db backup abc.db 131 db backup abc.db
131 sqlite3 db2 abc.db 132 sqlite3 db2 abc.db
132 string compare [sig db] [sig db2] 133 string compare [sig db] [sig db2]
133 } {0} 134 } {0}
134 135
135 do_test walbak-2.3 { 136 do_test walbak-2.3 {
136 sqlite3_backup B db2 main db main 137 sqlite3_backup B db2 main db main
137 B step 50 138 B step 50
138 execsql { UPDATE t1 SET b = randomblob(500) } 139 execsql { UPDATE t1 SET b = randomblob(500) }
139 list [B step 1000] [B finish] 140 list [B step 1000] [B finish]
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 sqlite3 db2 test.db2 233 sqlite3 db2 test.db2
233 db eval { PRAGMA page_size = 1024 ; PRAGMA journal_mode = WAL } 234 db eval { PRAGMA page_size = 1024 ; PRAGMA journal_mode = WAL }
234 db2 eval { 235 db2 eval {
235 PRAGMA page_size = 2048; 236 PRAGMA page_size = 2048;
236 PRAGMA journal_mode = PERSIST; 237 PRAGMA journal_mode = PERSIST;
237 CREATE TABLE xx(x); 238 CREATE TABLE xx(x);
238 } 239 }
239 } 240 }
240 241
241 } { 242 } {
243 if {$tn==4 && [sqlite3 -has-codec]} continue
242 foreach f [glob -nocomplain test.db*] { forcedelete $f } 244 foreach f [glob -nocomplain test.db*] { forcedelete $f }
243 245
244 eval $setup 246 eval $setup
245 247
246 do_test walbak-3.$tn.1 { 248 do_test walbak-3.$tn.1 {
247 execsql { 249 execsql {
248 CREATE TABLE t1(a, b); 250 CREATE TABLE t1(a, b);
249 INSERT INTO t1 VALUES(1, 2); 251 INSERT INTO t1 VALUES(1, 2);
250 INSERT INTO t1 VALUES(3, 4); 252 INSERT INTO t1 VALUES(3, 4);
251 SELECT * FROM t1; 253 SELECT * FROM t1;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 350
349 351
350 db2 close 352 db2 close
351 do_test walbak-4.$tn.6 { file exists test.db2-wal } 0 353 do_test walbak-4.$tn.6 { file exists test.db2-wal } 0
352 sqlite3 db2 test.db2 354 sqlite3 db2 test.db2
353 do_test walbak-4.$tn.7 { execsql { PRAGMA journal_mode } db2 } $dest_final 355 do_test walbak-4.$tn.7 { execsql { PRAGMA journal_mode } db2 } $dest_final
354 } 356 }
355 357
356 358
357 finish_test 359 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/wal8.test ('k') | third_party/sqlite/src/test/walcksum.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698