1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Fix a problem in shared_err.test preventing it from running properly and add a test to corrupt2.test to cover another corruption detection case. (CVS 5355)

FossilOrigin-Name: 2dcd5287a0d71140baa23aae2ab3d95d78a5676d
This commit is contained in:
danielk1977
2008-07-07 17:55:28 +00:00
parent d55d57ed5e
commit 75c5fa88e9
4 changed files with 21 additions and 24 deletions

View File

@ -13,7 +13,7 @@
# This file implements tests to make sure SQLite does not crash or
# segfault if it sees a corrupt database file.
#
# $Id: corrupt2.test,v 1.7 2008/07/07 17:04:23 danielk1977 Exp $
# $Id: corrupt2.test,v 1.8 2008/07/07 17:55:29 danielk1977 Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -171,6 +171,12 @@ do_test corrupt2-3.1 {
} db2
} {1 {database disk image is malformed}}
do_test corrupt2-4.1 {
catchsql {
SELECT * FROM t2;
} db2
} {1 {database disk image is malformed}}
do_test corrupt2-4.1 {
file delete -force corrupt.db
file delete -force corrupt.db-journal