| OLD | NEW |
| 1 # 2008 August 01 | 1 # 2008 August 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 } -cleanup { | 54 } -cleanup { |
| 55 do_test mallocI-4.$::n.2 { | 55 do_test mallocI-4.$::n.2 { |
| 56 # If this INSERT is possible then [db] does not hold a shared lock | 56 # If this INSERT is possible then [db] does not hold a shared lock |
| 57 # on the database file. | 57 # on the database file. |
| 58 catchsql { INSERT INTO t1 VALUES(1, 2, 3) } db2 | 58 catchsql { INSERT INTO t1 VALUES(1, 2, 3) } db2 |
| 59 } {0 {}} | 59 } {0 {}} |
| 60 catch {db2 close} | 60 catch {db2 close} |
| 61 } | 61 } |
| 62 catch { db2 close } | 62 catch { db2 close } |
| 63 | 63 |
| 64 do_faultsim_test mallocI-5 -faults oom* -prep { |
| 65 catch { db close } |
| 66 sqlite3 db test.db |
| 67 sqlite3_db_config_lookaside db 0 0 0 |
| 68 } -body { |
| 69 db eval { Select CAST(1 AS blob) } |
| 70 } -test { |
| 71 faultsim_test_result {0 1} |
| 72 } |
| 73 |
| 74 |
| 64 finish_test | 75 finish_test |
| OLD | NEW |