1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Fix the pager so that it handles persistent I/O errors correctly.

Update the testing infrastructure so that it tests for persistent
I/O errors instead of just transient errors. (CVS 3690)

FossilOrigin-Name: ea8507a796c65041f7e720edea89f919fca1a028
This commit is contained in:
drh
2007-03-15 12:51:16 +00:00
parent d5eb79eb40
commit a7aea3dd52
5 changed files with 20 additions and 12 deletions

View File

@ -12,11 +12,14 @@
# focus of this file is testing for correct handling of disk full
# errors.
#
# $Id: diskfull.test,v 1.3 2005/09/09 10:46:19 drh Exp $
# $Id: diskfull.test,v 1.4 2007/03/15 12:51:17 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
set sqlite_io_error_persist 0
set sqlite_io_error_hit 0
set sqlite_io_error_pending 0
do_test diskfull-1.1 {
execsql {
CREATE TABLE t1(x);
@ -47,6 +50,7 @@ do_test diskfull-1.5 {
}
} {1 {database or disk is full}}
set sqlite_diskfull_pending 0
set sqlite_io_error_hit 0
integrity_check diskfull-1.6
set go 1