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

Side by Side Diff: third_party/sqlite/src/test/soak.test

Issue 6990047: Import SQLite 3.7.6.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « third_party/sqlite/src/test/shared3.test ('k') | third_party/sqlite/src/test/softheap1.test » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/shared3.test ('k') | third_party/sqlite/src/test/softheap1.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698