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

Side by Side Diff: third_party/sqlite/sqlite-src-3080704/test/wal64k.test

Issue 883353008: [sql] Import reference version of SQLite 3.8.7.4. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hold back encoding change which is messing up patch. 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
(Empty)
1 # 2010 April 13
2 #
3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing:
5 #
6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give.
9 #
10 #***********************************************************************
11 # This file implements regression tests for SQLite library. The
12 # focus of this file is testing the operation of the library in
13 # "PRAGMA journal_mode=WAL" mode.
14 #
15
16 set testdir [file dirname $argv0]
17 source $testdir/tester.tcl
18 set testprefix wal64k
19
20 ifcapable !wal {finish_test ; return }
21
22 if {$tcl_platform(platform) != "unix"} {
23 finish_test
24 return
25 }
26
27 db close
28 test_syscall pagesize 65536
29 sqlite3 db test.db
30
31 do_execsql_test 1.0 {
32 PRAGMA journal_mode = WAL;
33 CREATE TABLE t1(x);
34 CREATE INDEX i1 ON t1(x);
35 } {wal}
36 do_test 1.1 { file size test.db-shm } {65536}
37
38 do_test 1.2 {
39 execsql BEGIN
40 while {[file size test.db-shm]==65536} {
41 execsql { INSERT INTO t1 VALUES( randstr(900,1100) ) }
42 }
43 execsql COMMIT
44 file size test.db-shm
45 } {131072}
46
47 integrity_check 1.3
48
49 db close
50 test_syscall pagesize -1
51 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/sqlite-src-3080704/test/wal6.test ('k') | third_party/sqlite/sqlite-src-3080704/test/wal7.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698