Update ioerr.test to be more deterministic. (CVS 2287)

FossilOrigin-Name: d0b16bae6555f723400821b22916b66609a26b9c
This commit is contained in:
danielk1977
2005-01-29 08:36:45 +00:00
parent b3bce66232
commit f7c9bfead4
3 changed files with 15 additions and 18 deletions
+8 -11
View File
@@ -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.17 2005/01/22 03:39:39 danielk1977 Exp $
# $Id: ioerr.test,v 1.18 2005/01/29 08:36:45 danielk1977 Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@@ -53,15 +53,12 @@ do_ioerr_test ioerr-1 -sqlprep {
#
# Additionally, if auto-vacuum is enabled, the 12th IO error is not
# detected. Same reason as the 8th in the test case above.
#
# IO error 134 is omitted because this occurs while closing the
# temporary database used by vacuum and is not reported.
#
do_ioerr_test ioerr-2 -cksum true -sqlprep {
BEGIN;
CREATE TABLE t1(a, b, c);
INSERT INTO t1 VALUES(1, randstr(5,50), randstr(5,50));
INSERT INTO t1 SELECT a+2, b||'-'||rowid, c||'-'||rowid FROM t1;
#
do_ioerr_test ioerr-2 -cksum true -sqlprep {
BEGIN;
CREATE TABLE t1(a, b, c);
INSERT INTO t1 VALUES(1, randstr(50,50), randstr(50,50));
INSERT INTO t1 SELECT a+2, b||'-'||rowid, c||'-'||rowid FROM t1;
INSERT INTO t1 SELECT a+4, b||'-'||rowid, c||'-'||rowid FROM t1;
INSERT INTO t1 SELECT a+8, b||'-'||rowid, c||'-'||rowid FROM t1;
INSERT INTO t1 SELECT a+16, b||'-'||rowid, c||'-'||rowid FROM t1;
@@ -76,7 +73,7 @@ do_ioerr_test ioerr-2 -cksum true -sqlprep {
} -sqlbody {
VACUUM;
} -exclude [list \
1 134 [expr [string match [execsql {pragma auto_vacuum}] 1]?12:-1]]
1 [expr [string match [execsql {pragma auto_vacuum}] 1]?12:-1]]
do_ioerr_test ioerr-3 -tclprep {
execsql {