1
0
mirror of https://github.com/sqlite/sqlite.git synced 2026-01-06 08:01:16 +03:00

Make sure thread003.test waits for all spawned threads to finish before continuing. (CVS 5644)

FossilOrigin-Name: 87c7e82f54cd446721d553d5c48ca2571b063669
This commit is contained in:
danielk1977
2008-08-30 09:10:16 +00:00
parent 4eb8e1b9f2
commit 3dbb0572d7
3 changed files with 11 additions and 9 deletions

View File

@@ -12,7 +12,7 @@
# This file contains tests that attempt to break the pcache module
# by bombarding it with simultaneous requests from multiple threads.
#
# $Id: thread003.test,v 1.3 2008/08/28 13:55:10 danielk1977 Exp $
# $Id: thread003.test,v 1.4 2008/08/30 09:10:17 danielk1977 Exp $
set testdir [file dirname $argv0]
@@ -155,6 +155,8 @@ do_test thread003.3 {
#
set nSecond 30
puts "Starting thread003.3 (should run for ~$nSecond seconds)"
unset -nocomplain finished(1)
unset -nocomplain finished(2)
do_test thread003.4 {
thread_spawn finished(1) $thread_procs [format {
set iEnd [expr {[clock_seconds] + %d}]