Remove a broken assert() triggered by a "PRAGMA max_page_count = N"
invocation, where N is larger than the number of pages in the database image, but smaller than the number of pages in the database file. FossilOrigin-Name: 7cd56cad5efead5097e9918c87313bb46e583fe62bae0df1be60e10117e2c3cb
This commit is contained in:
@@ -70,6 +70,15 @@ do_test fallocate-1.7 {
|
||||
} {1024}
|
||||
do_test fallocate-1.8 { execsql { COMMIT } } {}
|
||||
|
||||
do_test 1.8 {
|
||||
set nPg [db one {PRAGMA page_count}]
|
||||
set nFile [expr [file size test.db] / 1024]
|
||||
list [expr $nPg<100] [expr $nFile>100]
|
||||
} {1 1}
|
||||
|
||||
do_execsql_test 1.9 {
|
||||
PRAGMA max_page_count = 100;
|
||||
} {}
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
# The following tests - fallocate-2.* - test that things work in WAL
|
||||
|
||||
Reference in New Issue
Block a user