| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |