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

Side by Side Diff: third_party/sqlite/src/test/e_walauto.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/e_vacuum.test ('k') | third_party/sqlite/src/test/e_walckpt.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 # 2014 December 04 1 # 2014 December 04
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 # 11 #
12 12
13 set testdir [file dirname $argv0] 13 set testdir [file dirname $argv0]
14 source $testdir/tester.tcl 14 source $testdir/tester.tcl
15 source $testdir/wal_common.tcl 15 source $testdir/wal_common.tcl
16 set testprefix e_walauto 16 set testprefix e_walauto
17 17
18 # Do not run this test on OpenBSD, as it depends on read() and mmap both 18 # Do not run this test on OpenBSD, as it depends on read() and mmap both
19 # accessing the same coherent view of the "test.db-shm" file. This doesn't 19 # accessing the same coherent view of the "test.db-shm" file. This doesn't
20 # work on OpenBSD. 20 # work on OpenBSD.
21 # 21 #
22 if {$tcl_platform(os) == "OpenBSD"} { 22 if {$tcl_platform(os) == "OpenBSD"} {
23 finish_test 23 finish_test
24 return 24 return
25 } 25 }
26 26
27 # This module uses hard-coded offsets which do not work if the reserved_bytes
28 # value is nonzero.
29 if {[nonzero_reserved_bytes]} {finish_test; return;}
30
31
27 proc read_nbackfill {} { 32 proc read_nbackfill {} {
28 seek $::shmfd 96 33 seek $::shmfd 96
29 binary scan [read $::shmfd 4] n nBackfill 34 binary scan [read $::shmfd 4] n nBackfill
30 set nBackfill 35 set nBackfill
31 } 36 }
32 proc read_mxframe {} { 37 proc read_mxframe {} {
33 seek $::shmfd 16 38 seek $::shmfd 16
34 binary scan [read $::shmfd 4] n mxFrame 39 binary scan [read $::shmfd 4] n mxFrame
35 set mxFrame 40 set mxFrame
36 } 41 }
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 do_test 1.$tn.12.5 { 205 do_test 1.$tn.12.5 {
201 db eval { INSERT INTO t1 VALUES(randomblob(100), randomblob(100)) } 206 db eval { INSERT INTO t1 VALUES(randomblob(100), randomblob(100)) }
202 read_nbackfill 207 read_nbackfill
203 } {1559} 208 } {1559}
204 209
205 db close 210 db close
206 close $shmfd 211 close $shmfd
207 } 212 }
208 213
209 finish_test 214 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/e_vacuum.test ('k') | third_party/sqlite/src/test/e_walckpt.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698