Add test cases to verify that the file format is preserved across

VACUUM.  Ticket #2804. (CVS 4572)

FossilOrigin-Name: 57400f50c600a59b56ba6eadfdc740235c194cd6
This commit is contained in:
drh
2007-11-27 23:36:59 +00:00
parent 039edbb479
commit f32fabfd75
3 changed files with 22 additions and 8 deletions
+15 -1
View File
@@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this script is descending indices.
#
# $Id: descidx1.test,v 1.7 2006/07/11 14:17:52 drh Exp $
# $Id: descidx1.test,v 1.8 2007/11/27 23:36:59 drh Exp $
#
set testdir [file dirname $argv0]
@@ -319,6 +319,13 @@ do_test descidx1-6.3 {
}
get_file_format
} {1}
ifcapable vacuum {
# Verify that the file format is preserved across a vacuum.
do_test descidx1-6.3.1 {
execsql {VACUUM}
get_file_format
} {1}
}
do_test descidx1-6.4 {
db close
file delete -force test.db test.db-journal
@@ -332,6 +339,13 @@ do_test descidx1-6.5 {
}
get_file_format
} {4}
ifcapable vacuum {
# Verify that the file format is preserved across a vacuum.
do_test descidx1-6.6 {
execsql {VACUUM}
get_file_format
} {4}
}
finish_test