diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-09-13 20:31:45 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-09-13 20:31:45 (GMT) |
commit | f11320b6b0dd2681bef8470d4fcf7c3b7eb6cbbd (patch) | |
tree | dc4dde386c652c2ffc77b47ac1b6a5728588b0f4 /tests/thread.test | |
parent | 177528494062f82a82280977e5ea3129515cf955 (diff) | |
download | tcl-f11320b6b0dd2681bef8470d4fcf7c3b7eb6cbbd.zip tcl-f11320b6b0dd2681bef8470d4fcf7c3b7eb6cbbd.tar.gz tcl-f11320b6b0dd2681bef8470d4fcf7c3b7eb6cbbd.tar.bz2 |
Fix various test-cases, which started failing on Windows due to TIP #430
Diffstat (limited to 'tests/thread.test')
-rw-r--r-- | tests/thread.test | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/thread.test b/tests/thread.test index eaaaa41..2524911 100644 --- a/tests/thread.test +++ b/tests/thread.test @@ -11,14 +11,17 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. +if {"::tcltest" ni [namespace children]} { + package require tcltest 2 + namespace import -force ::tcltest::* +} # when thread::release is used, -wait is passed in order allow the thread to # be fully finalized, which avoids valgrind "still reachable" reports. -package require tcltests - ::tcltest::loadTestedCommands catch [list package require -exact Tcltest [info patchlevel]] +package require tcltests # Some tests require the testthread command |