mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Update the "fuzz_malloc.test" script to print SQL statements in which OOM
handling problems are found to stdout. FossilOrigin-Name: a956363cf6881be590120c7718976b54b12c4bd0d9228d8142b45e0fe1826f7e
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user