Fix the corrupt7 tests to track changes in the integrity check error message. (CVS 5480)

FossilOrigin-Name: 22177dac2e3cd9acafe7fcc71674a675fdd098ff
This commit is contained in:
drh
2008-07-25 14:53:17 +00:00
parent ebf1b467f7
commit 1bb14aca96
3 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -14,7 +14,7 @@
# segfault if it sees a corrupt database file. It specifically focuses
# on corrupt cell offsets in a btree page.
#
# $Id: corrupt7.test,v 1.2 2008/06/11 18:56:42 drh Exp $
# $Id: corrupt7.test,v 1.3 2008/07/25 14:53:17 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@@ -63,13 +63,13 @@ do_test corrupt7-2.1 {
sqlite3 db test.db
db eval {PRAGMA integrity_check(1)}
} {{*** in database main ***
Page 2: sqlite3BtreeInitPage() returns error code 11}}
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 ***
Page 2: sqlite3BtreeInitPage() returns error code 11}}
Corruption detected in cell 15 on page 2}}
finish_test