aboutsummaryrefslogtreecommitdiff
path: root/test/fuzz_malloc.test
diff options
context:
space:
mode:
authordan <dan@noemail.net>2018-04-26 08:56:40 +0000
committerdan <dan@noemail.net>2018-04-26 08:56:40 +0000
commit1e0807490633b2f1f3b059bbfd2970b6a88c0861 (patch)
tree153cbe4f04c703688600e99c7606c3717a526217 /test/fuzz_malloc.test
parentfc0ec3e5e839e92f8205804b1b1e836a51a8e5b5 (diff)
downloadsqlite-1e0807490633b2f1f3b059bbfd2970b6a88c0861.tar.gz
sqlite-1e0807490633b2f1f3b059bbfd2970b6a88c0861.zip
Update the "fuzz_malloc.test" script to print SQL statements in which OOM
handling problems are found to stdout. FossilOrigin-Name: a956363cf6881be590120c7718976b54b12c4bd0d9228d8142b45e0fe1826f7e
Diffstat (limited to 'test/fuzz_malloc.test')
-rw-r--r--test/fuzz_malloc.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/fuzz_malloc.test b/test/fuzz_malloc.test
index 1e31babd9..b01b9d7ae 100644
--- a/test/fuzz_malloc.test
+++ b/test/fuzz_malloc.test
@@ -59,7 +59,12 @@ proc do_fuzzy_malloc_test {testname args} {
# puts fuzyy-sql=\[$::sql\]; flush stdout
foreach {rc res} [catchsql "$::sql"] {}
if {$rc==0} {
+ set nErr1 [set_test_counter errors]
do_malloc_test $testname-$ii -sqlbody $::sql -sqlprep $::prep
+ if {[set_test_counter errors]>$nErr1} {
+ puts "Previous fuzzy-sql=\[$::sql\]"
+ flush stdout
+ }
} else {
incr ii -1
}