-C Fix\soverzealous\sfts2\sassertions\sWRT\srowid\s0\sor\slower.\s\sOnly\scheck\sthat\ndocids\sare\sascending\sif\sthere\swas\sa\sprior\sdocid\sset\sfor\sthe\sdoclist,\nignore\sthe\sinitial\sdocid\sof\s0.\s(CVS\s4026)
-D 2007-05-21T21:59:18
+C Increase\sthe\snumber\sof\srepititions\sin\scrash.test.\s(CVS\s4027)
+D 2007-05-23T06:25:13
F Makefile.in a42354804b50c2708ce72cf79e4daa30f50191b5
F Makefile.linux-gcc 2d8574d1ba75f129aba2019f0b959db380a90935
F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028
F test/corrupt.test 18c7a995b1af76a8c8600b996257f2c7b7bff083
F test/corrupt2.test 572f8df0303d0ce63ddad5c5c9101a83a345ae46
F test/corrupt3.test 263e8bb04e2728df832fddf6973cf54c91db0c32
-F test/crash.test 167eb4652eccbedb199b6f21850346c3f5d779fb
+F test/crash.test 0ba9b7927aaf2f3273e822883b5792a183ac73f0
F test/crash2.test 423c6ec404d15b7d7d0e40aef0a26740cce6075f
F test/crashtest1.c 09c1c7d728ccf4feb9e481671e29dda5669bbcc2
F test/createtab.test b562aba1a65be49935fc43a04e90766e39231804
F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0
F www/version3.tcl 890248cf7b70e60c383b0e84d77d5132b3ead42b
F www/whentouse.tcl fc46eae081251c3c181bd79c5faef8195d7991a5
-P d7539c6e8b66d537307e70aac5f2001135151c78
-R fc1fc4b99da3f2060e3c202b7bab5aec
-U shess
-Z a33da34f6d94403bda46e441bbf9b0fa
+P ed3a131f1d3fe51d1e79bdfe1bfafa55f825afa9
+R ecb9d9a11d5fd4fc118cc73caa42f7c8
+U danielk1977
+Z 878195d8d740a1b73f158bebb97ceae6
# These routines allow us to simulate the kind of file damage that
# occurs after a power failure.
#
-# $Id: crash.test,v 1.23 2007/03/17 10:26:59 danielk1977 Exp $
+# $Id: crash.test,v 1.24 2007/05/23 06:25:13 danielk1977 Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
return
}
-# set repeats 100
-set repeats 10
+set repeats 100
+# set repeats 10
# The following procedure computes a "signature" for table "abc". If
# abc changes in any way, the signature should change.
expr ([file size test2.db] / 1024) > 450
} {1}
+set fin 0
for {set i 1} {$i<$repeats} {incr i} {
set sig [signature]
set sig2 [signature2]
set c [crashsql -delay $i -file test.db-journal "
ATTACH 'test2.db' AS aux;
BEGIN;
- SELECT random() FROM abc LIMIT $i;
+ SELECT randstr($i,$i) FROM abc LIMIT $i;
INSERT INTO abc VALUES(randstr(10,10), 0, 0);
DELETE FROM abc WHERE random()%10!=0;
INSERT INTO abc2 VALUES(randstr(10,10), 0, 0);
DELETE FROM abc2 WHERE random()%10!=0;
COMMIT;
"]
+ if { $c == {0 {}} } {
+ set ::fin 1
+ set c {1 {child process exited abnormally}}
+ }
set c
} {1 {child process exited abnormally}}
+ if {$::fin} break
do_test crash-4.1.$i.2 {
signature
} $sig
} $sig2
}
set i 0
+set fin 0
while {[incr i]} {
set sig [signature]
set sig2 [signature2]
set c [crashsql -delay $i -file test2.db-journal "
ATTACH 'test2.db' AS aux;
BEGIN;
- SELECT random() FROM abc LIMIT $i;
+ SELECT randstr($i,$i) FROM abc LIMIT $i;
INSERT INTO abc VALUES(randstr(10,10), 0, 0);
DELETE FROM abc WHERE random()%10!=0;
INSERT INTO abc2 VALUES(randstr(10,10), 0, 0);