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

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

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « third_party/sqlite/src/test/corrupt2.test ('k') | third_party/sqlite/src/test/corruptC.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/corrupt7.test
diff --git a/third_party/sqlite/src/test/corrupt7.test b/third_party/sqlite/src/test/corrupt7.test
index db92cf1de9f2b4b49bb7622340ef0d7056754f87..7ebebd94e778f2bcdcea6c1ff204e97091f59d6b 100644
--- a/third_party/sqlite/src/test/corrupt7.test
+++ b/third_party/sqlite/src/test/corrupt7.test
@@ -65,41 +65,20 @@ integrity_check corrupt7-1.4
# Deliberately corrupt some of the cell offsets in the btree page
# on page 2 of the database.
-#
-# The error message is different depending on whether or not the
-# SQLITE_ENABLE_OVERSIZE_CELL_CHECK compile-time option is engaged.
-#
-ifcapable oversize_cell_check {
- do_test corrupt7-2.1 {
- db close
- hexio_write test.db 1062 FF
- sqlite3 db test.db
- db eval {PRAGMA integrity_check(1)}
- } {{*** in database main ***
-Page 2: btreeInitPage() returns error code 11}}
- do_test corrupt7-2.2 {
- db close
- hexio_write test.db 1062 04
- sqlite3 db test.db
- db eval {PRAGMA integrity_check(1)}
- } {{*** in database main ***
-Page 2: btreeInitPage() returns error code 11}}
-} else {
- do_test corrupt7-2.1 {
- db close
- hexio_write test.db 1062 FF
- sqlite3 db test.db
- db eval {PRAGMA integrity_check(1)}
- } {{*** in database main ***
-Corruption detected in cell 15 on page 2}}
- do_test corrupt7-2.2 {
- db close
- hexio_write test.db 1062 04
- sqlite3 db test.db
- db eval {PRAGMA integrity_check(1)}
- } {{*** in database main ***
-On tree page 2 cell 15: Rowid 0 out of order (previous was 15)}}
-}
+do_test corrupt7-2.1 {
+ db close
+ hexio_write test.db 1062 FF
+ sqlite3 db test.db
+ db eval {PRAGMA integrity_check(1)}
+} {{*** in database main ***
+On tree page 2 cell 15: Offset 65457 out of range 945..1020}}
+do_test corrupt7-2.2 {
+ db close
+ hexio_write test.db 1062 04
+ sqlite3 db test.db
+ db eval {PRAGMA integrity_check(1)}
+} {{*** in database main ***
+On tree page 2 cell 15: Offset 1201 out of range 945..1020}}
# The code path that was causing the buffer overrun that this test
# case was checking for was removed.
« no previous file with comments | « third_party/sqlite/src/test/corrupt2.test ('k') | third_party/sqlite/src/test/corruptC.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698