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

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

Issue 6990047: Import SQLite 3.7.6.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « third_party/sqlite/src/test/lock5.test ('k') | third_party/sqlite/src/test/lock_common.tcl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 2008 October 6 1 # 2008 October 6
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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 } 105 }
106 } {1} 106 } {1}
107 107
108 set sqlite_hostid_num 3 108 set sqlite_hostid_num 3
109 do_test lock6-1.2 { 109 do_test lock6-1.2 {
110 execsql {pragma lock_status} 110 execsql {pragma lock_status}
111 } {main unlocked temp closed} 111 } {main unlocked temp closed}
112 112
113 sqlite3_soft_heap_limit 0 113 sqlite3_soft_heap_limit 0
114 do_test lock6-1.3 { 114 do_test lock6-1.3 {
115 sqlite3 db test.db 115 list [catch {
116 catchsql { 116 sqlite3 db test.db
117 select * from sqlite_master; 117 execsql { select * from sqlite_master }
118 } 118 } msg] $msg
119 } {1 {database is locked}} 119 } {1 {database is locked}}
120 120
121 do_test lock6-1.4 { 121 do_test lock6-1.4 {
122 set lockpath [execsql { 122 set lockpath [execsql {
123 PRAGMA lock_proxy_file=":auto:"; 123 PRAGMA lock_proxy_file=":auto:";
124 PRAGMA lock_proxy_file; 124 PRAGMA lock_proxy_file;
125 } db] 125 } db]
126 set lockpath 126 set lockpath
127 } {{:auto: (not held)}} 127 } {{:auto: (not held)}}
128 128
(...skipping 25 matching lines...) Expand all
154 execsql { 154 execsql {
155 PRAGMA lock_proxy_file="mine"; 155 PRAGMA lock_proxy_file="mine";
156 select * from sqlite_master; 156 select * from sqlite_master;
157 } db 157 } db
158 } {} 158 } {}
159 159
160 catch {close $::tf1} 160 catch {close $::tf1}
161 set env(SQLITE_FORCE_PROXY_LOCKING) $using_proxy 161 set env(SQLITE_FORCE_PROXY_LOCKING) $using_proxy
162 set sqlite_hostid_num 0 162 set sqlite_hostid_num 0
163 163
164 sqlite3_soft_heap_limit $soft_limit 164 sqlite3_soft_heap_limit $cmdlinearg(soft-heap-limit)
165
166 } 165 }
167 166
168 finish_test 167 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/lock5.test ('k') | third_party/sqlite/src/test/lock_common.tcl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698