summaryrefslogtreecommitdiffstats
path: root/tests/case.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/case.test')
-rw-r--r--tests/case.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/case.test b/tests/case.test
index 6d63cea..d7558a9 100644
--- a/tests/case.test
+++ b/tests/case.test
@@ -11,6 +11,11 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
+if {![llength [info commands case]]} {
+ # No "case" command? So no need to test
+ return
+}
+
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
namespace import -force ::tcltest::*