From: danielk1977 Date: Wed, 23 May 2007 06:25:13 +0000 (+0000) Subject: Increase the number of repititions in crash.test. (CVS 4027) X-Git-Tag: version-3.4.0~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76f559689a0f60e1136c9cb58fdc7e059ba04529;p=thirdparty%2Fsqlite.git Increase the number of repititions in crash.test. (CVS 4027) FossilOrigin-Name: f3c3412afa95e7e4b2e6477718785b51f5352c39 --- diff --git a/manifest b/manifest index 029bfa48c9..002902bf9c 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -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 @@ -200,7 +200,7 @@ F test/conflict.test ac40064d46c4c259cf6c216d30aa5bcc26e7eea2 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 @@ -494,7 +494,7 @@ F www/tclsqlite.tcl bb0d1357328a42b1993d78573e587c6dcbc964b9 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 diff --git a/manifest.uuid b/manifest.uuid index f2a8dc7975..438eae51e6 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -ed3a131f1d3fe51d1e79bdfe1bfafa55f825afa9 \ No newline at end of file +f3c3412afa95e7e4b2e6477718785b51f5352c39 \ No newline at end of file diff --git a/test/crash.test b/test/crash.test index 80dd9f1df0..a2a83cb39c 100644 --- a/test/crash.test +++ b/test/crash.test @@ -17,7 +17,7 @@ # 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 @@ -27,8 +27,8 @@ ifcapable !crashtest { 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. @@ -220,6 +220,7 @@ do_test crash-4.0 { 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] @@ -227,15 +228,20 @@ for {set i 1} {$i<$repeats} {incr i} { 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 @@ -244,6 +250,7 @@ for {set i 1} {$i<$repeats} {incr i} { } $sig2 } set i 0 +set fin 0 while {[incr i]} { set sig [signature] set sig2 [signature2] @@ -252,7 +259,7 @@ while {[incr i]} { 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);