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:
+5
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user