Remove an assert() condition that may not be true if the database file is corrupt. Update a test case in corruptC.test.

FossilOrigin-Name: 0bcf75516f59e49536f9e5c5cd542058ab61e2fc
This commit is contained in:
dan
2013-11-28 14:14:31 +00:00
parent 19be738b42
commit 0d4a0cdf18
4 changed files with 13 additions and 10 deletions
+5 -1
View File
@@ -202,6 +202,10 @@ do_test corruptC-2.8 {
} {1 {database disk image is malformed}}
# corruption (seed 170434)
#
# UPDATE: Prior to 3.8.2, this used to return SQLITE_CORRUPT. It no longer
# does. That is Ok, the point of these tests is to verify that no buffer
# overruns or overreads can be caused by corrupt databases.
do_test corruptC-2.9 {
db close
forcecopy test.bu test.db
@@ -211,7 +215,7 @@ do_test corruptC-2.9 {
sqlite3 db test.db
catchsql {BEGIN; DELETE FROM t1 WHERE x>13; ROLLBACK;}
} {1 {database disk image is malformed}}
} {0 {}}
# corruption (seed 186504)
do_test corruptC-2.10 {