OLD | NEW |
1 # 2007 May 24 | 1 # 2007 May 24 |
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 # List of test files that are run by this file. | 59 # List of test files that are run by this file. |
60 # | 60 # |
61 set SOAKTESTS { | 61 set SOAKTESTS { |
62 fuzz.test | 62 fuzz.test |
63 fuzz_malloc.test | 63 fuzz_malloc.test |
64 trans.test | 64 trans.test |
65 corruptC.test | 65 corruptC.test |
66 } | 66 } |
67 | 67 |
68 set ISQUICK 1 | 68 set G(isquick) 1 |
69 | 69 |
70 set soak_starttime [clock seconds] | 70 set soak_starttime [clock seconds] |
71 set soak_finishtime [expr {$soak_starttime + $TIMEOUT}] | 71 set soak_finishtime [expr {$soak_starttime + $TIMEOUT}] |
72 | 72 |
73 # Loop until the timeout is reached or an error occurs. | 73 # Loop until the timeout is reached or an error occurs. |
74 # | 74 # |
75 for {set iRun 0} {[clock seconds] < $soak_finishtime && $nErr==0} {incr iRun} { | 75 for {set iRun 0} {[clock seconds] < $soak_finishtime} {incr iRun} { |
76 | 76 |
77 set iIdx [expr {$iRun % [llength $SOAKTESTS]}] | 77 set iIdx [expr {$iRun % [llength $SOAKTESTS]}] |
78 source [file join $testdir [lindex $SOAKTESTS $iIdx]] | 78 source [file join $testdir [lindex $SOAKTESTS $iIdx]] |
79 catch {db close} | 79 catch {db close} |
80 | 80 |
81 if {$sqlite_open_file_count>0} { | 81 if {$sqlite_open_file_count>0} { |
82 puts "$tail did not close all files: $sqlite_open_file_count" | 82 puts "$tail did not close all files: $sqlite_open_file_count" |
83 incr nErr | 83 fail_test $tail |
84 lappend ::failList $tail | |
85 set sqlite_open_file_count 0 | 84 set sqlite_open_file_count 0 |
86 } | 85 } |
87 | 86 |
| 87 if {[set_test_counter errors]>0} break |
88 } | 88 } |
89 | 89 |
90 really_finish_test | 90 really_finish_test |
OLD | NEW |