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

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

Issue 2751253002: [sql] Import SQLite 3.17.0. (Closed)
Patch Set: also clang on Linux i386 Created 3 years, 9 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
« no previous file with comments | « third_party/sqlite/src/test/corruptG.test ('k') | third_party/sqlite/src/test/corruptI.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/corruptH.test
diff --git a/third_party/sqlite/src/test/corruptH.test b/third_party/sqlite/src/test/corruptH.test
index 5c83cb3b90daa9f44894d32a3e69ef8553a81ad6..9ba7522422be7214f861cfcb55f9c6736500bc42 100644
--- a/third_party/sqlite/src/test/corruptH.test
+++ b/third_party/sqlite/src/test/corruptH.test
@@ -14,10 +14,10 @@ set testdir [file dirname $argv0]
source $testdir/tester.tcl
set testprefix corruptH
-# Do not use a codec for tests in this file, as the database file is
-# manipulated directly using tcl scripts (using the [hexio_write] command).
-#
-do_not_use_codec
+# This module uses hard-coded offsets which do not work if the reserved_bytes
+# value is nonzero.
+if {[nonzero_reserved_bytes]} {finish_test; return;}
+
database_may_be_corrupt
# The corruption migrations tested by the code in this file are not detected
@@ -174,4 +174,3 @@ do_test 3.3 {
} {1 {database disk image is malformed}}
finish_test
-
« no previous file with comments | « third_party/sqlite/src/test/corruptG.test ('k') | third_party/sqlite/src/test/corruptI.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698