CDXLPlay added with permission from Fredik Wikstrom.
[AROS-Contrib.git] / sqlite3 / test / vacuum2.test
blob1693cbbced43d4402f732e9f1b687bdbc6b505a0
1 # 2005 February 15
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 file is testing the VACUUM statement.
14 # $Id: vacuum2.test,v 1.1 2005/02/16 03:27:08 drh Exp $
16 set testdir [file dirname $argv0]
17 source $testdir/tester.tcl
19 # If the VACUUM statement is disabled in the current build, skip all
20 # the tests in this file.
22 ifcapable {!vacuum} {
23   finish_test
24   return
26 if $AUTOVACUUM {
27   finish_test
28   return
31 # Ticket #1121 - make sure vacuum works if all autoincrement tables
32 # have been deleted.
34 do_test vacuum2-1.1 {
35   execsql {
36     CREATE TABLE t1(x INTEGER PRIMARY KEY AUTOINCREMENT, y);
37     DROP TABLE t1;
38     VACUUM;
39   }
40 } {}
42 finish_test