diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-09-04 15:48:08 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-09-04 15:48:08 (GMT) |
commit | f2963d15d036e305300773f74a602c9c0a8c9229 (patch) | |
tree | e69df441c3690a4342a3655ca658ce086eb1b68a /tests/stack.test | |
parent | a4abf50c23f2a2b458181704617172b1de3e772a (diff) | |
download | tcl-f2963d15d036e305300773f74a602c9c0a8c9229.zip tcl-f2963d15d036e305300773f74a602c9c0a8c9229.tar.gz tcl-f2963d15d036e305300773f74a602c9c0a8c9229.tar.bz2 |
Let all test-cases load the "tcltest" package the same way. Depend on tcltest 2.5, since we never test with earlier tcltest versions
Diffstat (limited to 'tests/stack.test')
-rw-r--r-- | tests/stack.test | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/stack.test b/tests/stack.test index 13bc524..44417df 100644 --- a/tests/stack.test +++ b/tests/stack.test @@ -9,8 +9,10 @@ # 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 ::tcltest::* +if {"::tcltest" ni [namespace children]} { + package require tcltest 2.5 + namespace import -force ::tcltest::* +} # Note that a failure in this test may result in a crash of the executable. |