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

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

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/vtabI.test ('k') | third_party/sqlite/src/test/wal3.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 13 1 # 2010 April 13
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 #***********************************************************************
11 # This file implements regression tests for SQLite library. The 11 # This file implements regression tests for SQLite library. The
12 # focus of this file is testing the operation of the library in 12 # focus of this file is testing the operation of the library in
13 # "PRAGMA journal_mode=WAL" mode. 13 # "PRAGMA journal_mode=WAL" mode.
14 # 14 #
15 15
16 set testdir [file dirname $argv0] 16 set testdir [file dirname $argv0]
17 source $testdir/tester.tcl 17 source $testdir/tester.tcl
18 source $testdir/lock_common.tcl 18 source $testdir/lock_common.tcl
19 source $testdir/malloc_common.tcl 19 source $testdir/malloc_common.tcl
20 source $testdir/wal_common.tcl 20 source $testdir/wal_common.tcl
21 21
22 set testprefix wal 22 set testprefix wal
23 23
24 ifcapable !wal {finish_test ; return } 24 ifcapable !wal {finish_test ; return }
25 test_set_config_pagecache 0 0
25 26
26 proc reopen_db {} { 27 proc reopen_db {} {
27 catch { db close } 28 catch { db close }
28 forcedelete test.db test.db-wal test.db-wal-summary 29 forcedelete test.db test.db-wal test.db-wal-summary
29 sqlite3_wal db test.db 30 sqlite3_wal db test.db
30 } 31 }
31 32
32 set ::blobcnt 0 33 set ::blobcnt 0
33 proc blob {nByte} { 34 proc blob {nByte} {
34 incr ::blobcnt 35 incr ::blobcnt
(...skipping 1545 matching lines...) Expand 10 before | Expand all | Expand 10 after
1580 foreach mode {OFF MEMORY PERSIST DELETE TRUNCATE WAL} { 1581 foreach mode {OFF MEMORY PERSIST DELETE TRUNCATE WAL} {
1581 delete_file test.db test2.db 1582 delete_file test.db test2.db
1582 sqlite3 db test.db 1583 sqlite3 db test.db
1583 do_test wal-25.$mode { 1584 do_test wal-25.$mode {
1584 db eval "PRAGMA journal_mode=$mode" 1585 db eval "PRAGMA journal_mode=$mode"
1585 db eval {ATTACH 'test2.db' AS t2; PRAGMA journal_mode=WAL;} 1586 db eval {ATTACH 'test2.db' AS t2; PRAGMA journal_mode=WAL;}
1586 } {wal} 1587 } {wal}
1587 db close 1588 db close
1588 } 1589 }
1589 1590
1591 test_restore_config_pagecache
1590 finish_test 1592 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/vtabI.test ('k') | third_party/sqlite/src/test/wal3.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698