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

Side by Side Diff: third_party/sqlite/src/test/async2.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 # 1 #
2 # May you do good and not evil. 2 # May you do good and not evil.
3 # May you find forgiveness for yourself and forgive others. 3 # May you find forgiveness for yourself and forgive others.
4 # May you share freely, never taking more than you give. 4 # May you share freely, never taking more than you give.
5 # 5 #
6 #*********************************************************************** 6 #***********************************************************************
7 # 7 #
8 # $Id: async2.test,v 1.12 2009/04/25 08:39:15 danielk1977 Exp $ 8 # $Id: async2.test,v 1.12 2009/04/25 08:39:15 danielk1977 Exp $
9 9
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 UPDATE counter SET c = 'FIN'; 44 UPDATE counter SET c = 'FIN';
45 } 45 }
46 46
47 db close 47 db close
48 48
49 foreach err [list ioerr malloc-transient malloc-persistent] { 49 foreach err [list ioerr malloc-transient malloc-persistent] {
50 set ::go 10 50 set ::go 10
51 for {set n 1} {$::go} {incr n} { 51 for {set n 1} {$::go} {incr n} {
52 set ::sqlite_io_error_pending 0 52 set ::sqlite_io_error_pending 0
53 sqlite3_memdebug_fail -1 53 sqlite3_memdebug_fail -1
54 file delete -force test.db test.db-journal 54 forcedelete test.db test.db-journal
55 sqlite3 db test.db 55 sqlite3 db test.db
56 execsql $::setup_script 56 execsql $::setup_script
57 db close 57 db close
58 58
59 sqlite3async_initialize "" 1 59 sqlite3async_initialize "" 1
60 sqlite3 db test.db 60 sqlite3 db test.db
61 sqlite3_db_config_lookaside db 0 0 0 61 sqlite3_db_config_lookaside db 0 0 0
62 62
63 switch -- $err { 63 switch -- $err {
64 ioerr { set ::sqlite_io_error_pending $n } 64 ioerr { set ::sqlite_io_error_pending $n }
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 } 117 }
118 } 118 }
119 119
120 db close 120 db close
121 } 121 }
122 } 122 }
123 123
124 catch {db close} 124 catch {db close}
125 125
126 finish_test 126 finish_test
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698