Update to 8.5.19

This commit is contained in:
Zachary Ware
2017-11-24 17:50:39 -06:00
parent 49cac229de
commit 9651fde681
557 changed files with 20338 additions and 26391 deletions

View File

@@ -254,6 +254,32 @@ test thread-6.1 {freeing very large object trees in a thread} testthread {
set res
} {0}
test thread-8.1 {threaded fork stress} -constraints {thread} -setup {
unset -nocomplain ::threadCount ::execCount ::threads ::thread
set ::threadCount 10
set ::execCount 10
} -body {
set ::threads [list]
for {set i 0} {$i < $::threadCount} {incr i} {
lappend ::threads [thread::create -joinable [string map \
[list %execCount% $::execCount] {
proc execLs {} {
if {$::tcl_platform(platform) eq "windows"} then {
return [exec $::env(COMSPEC) /c DIR]
} else {
return [exec /bin/ls]
}
}
set j {%execCount%}; while {[incr j -1]} {execLs}
}]]
}
foreach ::thread $::threads {
thread::join $::thread
}
} -cleanup {
unset -nocomplain ::threadCount ::execCount ::threads ::thread
} -result {}
# cleanup
::tcltest::cleanupTests
return