diff options
Diffstat (limited to 'tests/compile.test')
-rw-r--r-- | tests/compile.test | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/compile.test b/tests/compile.test index 18e978f..b90f124 100644 --- a/tests/compile.test +++ b/tests/compile.test @@ -11,8 +11,11 @@ # See the file "license.terms" for information on usage and redistribution of # this file, and for a DISCLAIMER OF ALL WARRANTIES. -package require tcltest 2 -namespace import -force ::tcltest::* +if {"::tcltest" ni [namespace children]} { + package require tcltest 2.5 + namespace import -force ::tcltest::* +} + ::tcltest::loadTestedCommands catch [list package require -exact Tcltest [info patchlevel]] |