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

Side by Side Diff: third_party/sqlite/src/test/fuzz_malloc.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/fuzz2.test ('k') | third_party/sqlite/src/test/fuzzer1.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 # 2007 May 10 2 # 2007 May 10
3 # 3 #
4 # The author disclaims copyright to this source code. In place of 4 # The author disclaims copyright to this source code. In place of
5 # a legal notice, here is a blessing: 5 # a legal notice, here is a blessing:
6 # 6 #
7 # May you do good and not evil. 7 # May you do good and not evil.
8 # May you find forgiveness for yourself and forgive others. 8 # May you find forgiveness for yourself and forgive others.
9 # May you share freely, never taking more than you give. 9 # May you share freely, never taking more than you give.
10 # 10 #
11 #*********************************************************************** 11 #***********************************************************************
12 # 12 #
13 # This file tests malloc failures in concert with fuzzy SQL generation. 13 # This file tests malloc failures in concert with fuzzy SQL generation.
14 # 14 #
15 # $Id: fuzz_malloc.test,v 1.10 2008/08/20 16:35:10 drh Exp $ 15 # $Id: fuzz_malloc.test,v 1.10 2008/08/20 16:35:10 drh Exp $
16 16
17 set testdir [file dirname $argv0] 17 set testdir [file dirname $argv0]
18 source $testdir/tester.tcl 18 source $testdir/tester.tcl
19 19
20 ifcapable !memdebug { 20 ifcapable !memdebug {
21 finish_test 21 finish_test
22 return 22 return
23 } 23 }
24 24
25 source $testdir/malloc_common.tcl 25 source $testdir/malloc_common.tcl
26 source $testdir/fuzz_common.tcl 26 source $testdir/fuzz_common.tcl
27 27
28 if {[info exists ISQUICK]} { 28 if {[info exists G(isquick)]} {
29 set ::REPEATS 20 29 set ::REPEATS 20
30 } elseif {[info exists SOAKTEST]} { 30 } elseif {[info exists G(issoak)]} {
31 set ::REPEATS 100 31 set ::REPEATS 100
32 } else { 32 } else {
33 set ::REPEATS 40 33 set ::REPEATS 40
34 } 34 }
35 35
36 # 36 #
37 # Usage: do_fuzzy_malloc_test <testname> ?<options>? 37 # Usage: do_fuzzy_malloc_test <testname> ?<options>?
38 # 38 #
39 # -template 39 # -template
40 # -sqlprep 40 # -sqlprep
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 COMMIT; 85 COMMIT;
86 } 86 }
87 set ::TableList [list abc def ghi] 87 set ::TableList [list abc def ghi]
88 set ::ColumnList [list a b c] 88 set ::ColumnList [list a b c]
89 89
90 do_fuzzy_malloc_test fuzzy_malloc-3 \ 90 do_fuzzy_malloc_test fuzzy_malloc-3 \
91 -template {[Select]} \ 91 -template {[Select]} \
92 -sqlprep $::SQLPREP 92 -sqlprep $::SQLPREP
93 93
94 finish_test 94 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/fuzz2.test ('k') | third_party/sqlite/src/test/fuzzer1.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698