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

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

Issue 901033002: Import SQLite 3.8.7.4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Chromium changes to support SQLite 3.8.7.4. 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
1 # 2009 April 01 1 # 2009 April 01
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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 do_test shared6-3.10 { 228 do_test shared6-3.10 {
229 catchsql { SELECT * FROM t1 } db3 229 catchsql { SELECT * FROM t1 } db3
230 } {1 {database table is locked}} 230 } {1 {database table is locked}}
231 do_test shared6-3.X { 231 do_test shared6-3.X {
232 db1 close 232 db1 close
233 db2 close 233 db2 close
234 db3 close 234 db3 close
235 } {} 235 } {}
236 236
237 do_test shared6-4.1 { 237 do_test shared6-4.1 {
238 #file delete -force test.db test.db-journal 238 #forcedelete test.db test.db-journal
239 sqlite3 db1 test.db 239 sqlite3 db1 test.db
240 sqlite3 db2 test.db 240 sqlite3 db2 test.db
241 241
242 set ::STMT [sqlite3_prepare_v2 db1 "SELECT * FROM t1" -1 DUMMY] 242 set ::STMT [sqlite3_prepare_v2 db1 "SELECT * FROM t1" -1 DUMMY]
243 execsql { CREATE TABLE t5(a, b) } db2 243 execsql { CREATE TABLE t5(a, b) } db2
244 } {} 244 } {}
245 do_test shared6-4.2 { 245 do_test shared6-4.2 {
246 sqlite3_finalize $::STMT 246 sqlite3_finalize $::STMT
247 } {SQLITE_OK} 247 } {SQLITE_OK}
248 do_test shared6-4.X { 248 do_test shared6-4.X {
249 249
250 db1 close 250 db1 close
251 db2 close 251 db2 close
252 } {} 252 } {}
253 253
254 sqlite3_enable_shared_cache $::enable_shared_cache 254 sqlite3_enable_shared_cache $::enable_shared_cache
255 finish_test 255 finish_test
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698