summaryrefslogtreecommitdiffstats
path: root/tests/var.test
diff options
context:
space:
mode:
authorhershey <hershey>1998-07-28 11:08:25 (GMT)
committerhershey <hershey>1998-07-28 11:08:25 (GMT)
commit39297f4d688d9dd85ac96585a3747a2a69ecc378 (patch)
treecef3c225b0557de91c036689a934c3fe0840b930 /tests/var.test
parentb58c7260ecf6cdb6a6a3ebf94e64da146b4105dc (diff)
downloadtcl-39297f4d688d9dd85ac96585a3747a2a69ecc378.zip
tcl-39297f4d688d9dd85ac96585a3747a2a69ecc378.tar.gz
tcl-39297f4d688d9dd85ac96585a3747a2a69ecc378.tar.bz2
checks for existence of test commands
Diffstat (limited to 'tests/var.test')
-rw-r--r--tests/var.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/var.test b/tests/var.test
index 6452577..93a66d1 100644
--- a/tests/var.test
+++ b/tests/var.test
@@ -407,6 +407,10 @@ test var-8.1 {TclDeleteVars, "unset" traces are called with fully-qualified var
list [unset test_ns_var::v] $test_ns_var::info
} {{} {test_ns_var::v {} u}}
+if {[info commands testsetnoerr] == {}} {
+ puts "This application hasn't been compiled with the \"testsetnoerr\""
+ puts "command, so I can't test TclSetVar etc."
+} else {
test var-9.1 {behaviour of TclSetVar without TCL_LEAVE_ERR_MSG flag} {
testsetnoerr v 1
} 1
@@ -449,6 +453,7 @@ test var-9.9 {behaviour of TclSetVar without TCL_LEAVE_ERR_MSG flag} {
trace var v w readonly
list [catch {testsetnoerr v 2} msg] $msg
} {1 {before set}}
+}
catch {namespace delete ns}
catch {unset arr}