| OLD | NEW |
| 1 # 2011 November 16 | 1 # 2011 November 16 |
| 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 23 matching lines...) Expand all Loading... |
| 34 } | 34 } |
| 35 expr {$::baseline+500000 < [sqlite3_memory_used]} | 35 expr {$::baseline+500000 < [sqlite3_memory_used]} |
| 36 } {1} | 36 } {1} |
| 37 do_test shrink-1.3 { | 37 do_test shrink-1.3 { |
| 38 set baseline [sqlite3_memory_used] | 38 set baseline [sqlite3_memory_used] |
| 39 db eval {PRAGMA shrink_memory} | 39 db eval {PRAGMA shrink_memory} |
| 40 expr {$::baseline > [sqlite3_memory_used]+500000} | 40 expr {$::baseline > [sqlite3_memory_used]+500000} |
| 41 } {1} | 41 } {1} |
| 42 | 42 |
| 43 finish_test | 43 finish_test |
| OLD | NEW |