In the rowhash.test, make sure global variables are cleared prior to use.

FossilOrigin-Name: 28efe0a40405567f3eaf334b6603282d5adac792
This commit is contained in:
drh 2010-06-02 14:43:30 +00:00
parent 0af3723478
commit 048129dcb9
3 changed files with 14 additions and 11 deletions

View File

@ -1,8 +1,8 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
C Undo\sone\sof\sthe\s"const"\smarkers\sfrom\sthe\sprevious\scheck-in\sbecause\sthe\nvalue\sneeds\sto\sbe\schangable,\seven\sif\sit\sis\snot\sactually\sever\schanged\sin\nthe\scurrent\simplementation.
D 2010-06-02T12:58:23
C In\sthe\srowhash.test,\smake\ssure\sglobal\svariables\sare\scleared\sprior\sto\suse.
D 2010-06-02T14:43:30
F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
F Makefile.in a5cad1f8f3e021356bfcc6c77dc16f6f1952bbc3
F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@ -551,7 +551,7 @@ F test/randexpr1.test 1084050991e9ba22c1c10edd8d84673b501cc25a
F test/rdonly.test c243623b26c311faab2aee311a26af372e123a65
F test/reindex.test 44edd3966b474468b823d481eafef0c305022254
F test/rollback.test 73355ad4492ff9a3a31e61c7e5eb5e01a1de94ca
F test/rowhash.test 97f56043ba11f0679920416c0cdbc72e5272267b
F test/rowhash.test 0bc1d31415e4575d10cacf31e1a66b5cc0f8be81
F test/rowid.test e58e0acef38b527ed1b0b70d3ada588f804af287
F test/rtree.test 55466a200af3591946c5da77ad5dbfbc1e5e05f9
F test/savepoint.test 14f78c2c2538764850b38446957048113cc24f75
@ -818,14 +818,14 @@ F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f
P e7073e23b80e7cae0c76d42f014ee9b2d40a8f2f
R 73e4f4b33b6afd93e1d6ea7c71eaf278
P c24ac3563f46fc6bcf7e45ee171afd3ae7d2faa8
R 00a157c07ad0e7a71db4a2e73d42f8e4
U drh
Z 14727fad5139f6047e9e78bb7ecc8f0d
Z e46aac16978246262ba376cf49913464
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFMBlVyoxKgR168RlERAsd9AJsEGi7/nwDGdroJRIl/cONp0hYp+gCfVVUe
aYXll0IoKruBrR7/JYSyt9g=
=+Y9j
iD8DBQFMBm4VoxKgR168RlERAhb3AJ9bqFhxwgZ6DohhkaiSxdI+Dne3iQCfS41x
jKYaDVEfVJDuwV1vKuW32gg=
=jOCy
-----END PGP SIGNATURE-----

View File

@ -1 +1 @@
c24ac3563f46fc6bcf7e45ee171afd3ae7d2faa8
28efe0a40405567f3eaf334b6603282d5adac792

View File

@ -12,7 +12,9 @@
# This file implements regression tests for SQLite library. The
# focus of this file is the code in rowhash.c.
#
# $Id: rowhash.test,v 1.5 2009/05/02 12:02:02 drh Exp $
# NB: The rowhash.c module is no longer part of the source tree. But
# we might as well keep this test.
#
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -45,6 +47,7 @@ do_keyset_test rowhash-2.2 {0 1 2 3}
do_keyset_test rowhash-2.3 {62 125 188}
if {[working_64bit_int]} {
expr srand(1)
unset -nocomplain i L
for {set i 4} {$i < 10} {incr i} {
for {set j 0} {$j < 5000} {incr j} {
lappend L [expr int(rand()*1000000000)]