| Index: third_party/sqlite/src/test/corrupt9.test
|
| diff --git a/third_party/sqlite/src/test/corrupt9.test b/third_party/sqlite/src/test/corrupt9.test
|
| index f083cf247ac04cf3387213a573a962a2c1e4f481..bb37758b17b48f0aadc2ba3a3e31e48e13ecdba8 100644
|
| --- a/third_party/sqlite/src/test/corrupt9.test
|
| +++ b/third_party/sqlite/src/test/corrupt9.test
|
| @@ -24,6 +24,10 @@ source $testdir/tester.tcl
|
| #
|
| do_not_use_codec
|
|
|
| +# These tests deal with corrupt database files
|
| +#
|
| +database_may_be_corrupt
|
| +
|
| # We must have the page_size pragma for these tests to work.
|
| #
|
| ifcapable !pager_pragmas {
|
| @@ -86,7 +90,7 @@ integrity_check corrupt9-1.2
|
| # Make sure the corruption is detected.
|
| #
|
| db close
|
| -file copy -force test.db test.db-template
|
| +forcecopy test.db test.db-template
|
|
|
| corrupt_freelist test.db 1
|
| sqlite3 db test.db
|
| @@ -103,7 +107,7 @@ do_test corrupt9-2.2 {
|
|
|
|
|
| db close
|
| -file copy -force test.db-template test.db
|
| +forcecopy test.db-template test.db
|
| corrupt_freelist test.db 2
|
| sqlite3 db test.db
|
| do_test corrupt9-3.1 {
|
| @@ -118,7 +122,7 @@ do_test corrupt9-3.2 {
|
| } {1 {database disk image is malformed}}
|
|
|
| db close
|
| -file copy -force test.db-template test.db
|
| +forcecopy test.db-template test.db
|
| corrupt_freelist test.db 3
|
| sqlite3 db test.db
|
| do_test corrupt9-4.1 {
|
|
|