sl@0: # 2005 September 19 sl@0: # sl@0: # The author disclaims copyright to this source code. In place of sl@0: # a legal notice, here is a blessing: sl@0: # sl@0: # May you do good and not evil. sl@0: # May you find forgiveness for yourself and forgive others. sl@0: # May you share freely, never taking more than you give. sl@0: # sl@0: #*********************************************************************** sl@0: # This file implements regression tests for SQLite library. sl@0: # sl@0: # This file implements tests to verify that ticket #1512 is sl@0: # fixed. sl@0: # sl@0: sl@0: set testdir [file dirname $argv0] sl@0: source $testdir/tester.tcl sl@0: sl@0: ifcapable {!vacuum || !autovacuum} { sl@0: finish_test sl@0: return sl@0: } sl@0: if {[db one {PRAGMA auto_vacuum}]} { sl@0: finish_test sl@0: return sl@0: } sl@0: sl@0: do_test tkt1512-1.1 { sl@0: execsql { sl@0: CREATE TABLE t1(a,b); sl@0: INSERT INTO t1 VALUES(1,2); sl@0: INSERT INTO t1 VALUES(3,4); sl@0: SELECT * FROM t1 sl@0: } sl@0: } {1 2 3 4} sl@0: do_test tkt1512-1.2 { sl@0: file size test.db sl@0: } {2048} sl@0: do_test tkt1512-1.3 { sl@0: execsql { sl@0: DROP TABLE t1; sl@0: } sl@0: file size test.db sl@0: } {2048} sl@0: do_test tkt1512-1.4 { sl@0: execsql { sl@0: VACUUM; sl@0: } sl@0: file size test.db sl@0: } {1024} sl@0: sl@0: sl@0: finish_test