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

Side by Side Diff: third_party/sqlite/src/test/mallocAll.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/malloc3.test ('k') | third_party/sqlite/src/test/mallocC.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 # 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 # This file runs all out-of-memory tests. 7 # This file runs all out-of-memory tests.
8 # 8 #
9 # $Id: mallocAll.test,v 1.1 2007/11/26 13:36:00 drh Exp $ 9 # $Id: mallocAll.test,v 1.1 2007/11/26 13:36:00 drh Exp $
10 10
(...skipping 12 matching lines...) Expand all
23 set argv [linsert $argv 0 $arg] 23 set argv [linsert $argv 0 $arg]
24 break 24 break
25 } 25 }
26 } 26 }
27 } 27 }
28 28
29 set testdir [file dirname $argv0] 29 set testdir [file dirname $argv0]
30 source $testdir/tester.tcl 30 source $testdir/tester.tcl
31 rename finish_test really_finish_test 31 rename finish_test really_finish_test
32 proc finish_test {} {} 32 proc finish_test {} {}
33 set ISQUICK 1 33 set G(isquick) 1
34 34
35 set EXCLUDE { 35 set EXCLUDE {
36 mallocAll.test 36 mallocAll.test
37 } 37 }
38 38
39 if {[sqlite3 -has-codec]} { 39 if {[sqlite3 -has-codec]} {
40 # lappend EXCLUDE \ 40 # lappend EXCLUDE \
41 # conflict.test 41 # conflict.test
42 } 42 }
43 43
44 44
45 # Files to include in the test. If this list is empty then everything 45 # Files to include in the test. If this list is empty then everything
46 # that is not in the EXCLUDE list is run. 46 # that is not in the EXCLUDE list is run.
47 # 47 #
48 set INCLUDE { 48 set INCLUDE {
49 } 49 }
50 50
51 foreach testfile [lsort -dictionary [glob $testdir/*malloc*.test]] { 51 foreach testfile [lsort -dictionary [glob $testdir/*malloc*.test]] {
52 set tail [file tail $testfile] 52 set tail [file tail $testfile]
53 if {[lsearch -exact $EXCLUDE $tail]>=0} continue 53 if {[lsearch -exact $EXCLUDE $tail]>=0} continue
54 if {[llength $INCLUDE]>0 && [lsearch -exact $INCLUDE $tail]<0} continue 54 if {[llength $INCLUDE]>0 && [lsearch -exact $INCLUDE $tail]<0} continue
55 source $testfile 55 source $testfile
56 catch {db close} 56 catch {db close}
57 if {$sqlite_open_file_count>0} { 57 if {$sqlite_open_file_count>0} {
58 puts "$tail did not close all files: $sqlite_open_file_count" 58 puts "$tail did not close all files: $sqlite_open_file_count"
59 incr nErr 59 fail_test $tail
60 lappend ::failList $tail
61 set sqlite_open_file_count 0 60 set sqlite_open_file_count 0
62 } 61 }
63 } 62 }
64 source $testdir/misuse.test 63 source $testdir/misuse.test
65 64
66 set sqlite_open_file_count 0 65 set sqlite_open_file_count 0
67 really_finish_test 66 really_finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/malloc3.test ('k') | third_party/sqlite/src/test/mallocC.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698