3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing:
6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give.
10 #***********************************************************************
11 # This file implements regression tests for SQLite library. The
12 # focus of this script is recovery from transient manditory locks
13 # that sometimes appear on database files due to anti-virus software.
16 if {$tcl_platform(platform)!="windows"} return
18 set testdir [file dirname $argv0]
19 source $testdir/tester.tcl
21 ifcapable !win32malloc {
26 set testprefix win32heap
31 sqlite3_config_heap_size 1048576
44 INSERT INTO t1 (x) VALUES(RANDOMBLOB(1048576));
50 SELECT COUNT(*) FROM t1;
57 sqlite3_config_heap_size 0
64 INSERT INTO t1 (x) VALUES(RANDOMBLOB(1048576));
70 SELECT COUNT(*) FROM t1;