Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Unified Diff: third_party/sqlite/sqlite-src-3080704/test/corrupt9.test

Issue 883353008: [sql] Import reference version of SQLite 3.8.7.4. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hold back encoding change which is messing up patch. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/sqlite/sqlite-src-3080704/test/corrupt9.test
diff --git a/third_party/sqlite/sqlite-src-3070603/test/corrupt9.test b/third_party/sqlite/sqlite-src-3080704/test/corrupt9.test
similarity index 95%
copy from third_party/sqlite/sqlite-src-3070603/test/corrupt9.test
copy to third_party/sqlite/sqlite-src-3080704/test/corrupt9.test
index f083cf247ac04cf3387213a573a962a2c1e4f481..bb37758b17b48f0aadc2ba3a3e31e48e13ecdba8 100644
--- a/third_party/sqlite/sqlite-src-3070603/test/corrupt9.test
+++ b/third_party/sqlite/sqlite-src-3080704/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 {
« no previous file with comments | « third_party/sqlite/sqlite-src-3080704/test/corrupt8.test ('k') | third_party/sqlite/sqlite-src-3080704/test/corruptA.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698