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

Unified Diff: third_party/sqlite/src/test/corruptA.test

Issue 5626002: Update sqlite to 3.7.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/third_party/sqlite/src
Patch Set: Update version in doc. Created 10 years 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/src/test/corruptA.test
diff --git a/third_party/sqlite/src/test/corruptA.test b/third_party/sqlite/src/test/corruptA.test
index fa3257f3df4fef388db73f9191114cb7cc5dd2af..58e14da1bd09725620137ee820078732f40506b5 100644
--- a/third_party/sqlite/src/test/corruptA.test
+++ b/third_party/sqlite/src/test/corruptA.test
@@ -37,9 +37,11 @@ integrity_check corruptA-1.2
db close
file copy -force test.db test.db-template
+set unreadable_version 02
+ifcapable wal { set unreadable_version 03 }
do_test corruptA-2.1 {
file copy -force test.db-template test.db
- hexio_write test.db 19 02 ;# the read format number
+ hexio_write test.db 19 $unreadable_version ;# the read format number
sqlite3 db test.db
catchsql {SELECT * FROM t1}
} {1 {file is encrypted or is not a database}}

Powered by Google App Engine
This is Rietveld 408576698