mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Infrastructure to make simulated I/O errors persistent instead of
transient. (CVS 3689) FossilOrigin-Name: 1a53f531ecd51938fab37a59b7088d89d8f8569d
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
# The tests in this file use special facilities that are only
|
||||
# available in the SQLite test fixture.
|
||||
#
|
||||
# $Id: ioerr.test,v 1.29 2007/01/04 14:58:14 drh Exp $
|
||||
# $Id: ioerr.test,v 1.30 2007/03/15 12:17:43 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -46,9 +46,6 @@ do_ioerr_test ioerr-1 -erc 1 -sqlprep {
|
||||
DELETE FROM t1 WHERE a<100;
|
||||
} -exclude [expr [string match [execsql {pragma auto_vacuum}] 1] ? 4 : 0]
|
||||
|
||||
finish_test
|
||||
return
|
||||
|
||||
# Test for IO errors during a VACUUM.
|
||||
#
|
||||
# The first IO call is excluded from the test. This call attempts to read
|
||||
@ -260,4 +257,13 @@ do_ioerr_test ioerr-10 -tclprep {
|
||||
}
|
||||
}
|
||||
|
||||
# Assertion fault bug reported by alex dimitrov.
|
||||
#
|
||||
do_ioerr_test ioerr-11 -erc 1 -sqlprep {
|
||||
CREATE TABLE A(Id INTEGER, Name TEXT);
|
||||
INSERT INTO A(Id, Name) VALUES(1, 'Name');
|
||||
} -sqlbody {
|
||||
UPDATE A SET Id = 2, Name = 'Name2' WHERE Id = 1;
|
||||
}
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user