summaryrefslogtreecommitdiffstats
path: root/tests/thread.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-09-13 20:31:45 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-09-13 20:31:45 (GMT)
commitf11320b6b0dd2681bef8470d4fcf7c3b7eb6cbbd (patch)
treedc4dde386c652c2ffc77b47ac1b6a5728588b0f4 /tests/thread.test
parent177528494062f82a82280977e5ea3129515cf955 (diff)
downloadtcl-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.test7
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