summaryrefslogtreecommitdiffstats
path: root/tests/compExpr-old.test
diff options
context:
space:
mode:
authorjenn <jenn>1999-06-30 00:17:06 (GMT)
committerjenn <jenn>1999-06-30 00:17:06 (GMT)
commitad8e9072d6bede2a254a1227a5c1d65fba9b39d4 (patch)
tree9e523f5f3b5949c577a635c2c610831b62ab50a7 /tests/compExpr-old.test
parentc99437b6b643f14bb0cad6e38ecf813f45a41e71 (diff)
downloadtcl-ad8e9072d6bede2a254a1227a5c1d65fba9b39d4.zip
tcl-ad8e9072d6bede2a254a1227a5c1d65fba9b39d4.tar.gz
tcl-ad8e9072d6bede2a254a1227a5c1d65fba9b39d4.tar.bz2
Added a check at the end of the test to not unset variables if
they don't exist.
Diffstat (limited to 'tests/compExpr-old.test')
-rw-r--r--tests/compExpr-old.test6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/compExpr-old.test b/tests/compExpr-old.test
index 6188c17..decf320 100644
--- a/tests/compExpr-old.test
+++ b/tests/compExpr-old.test
@@ -12,7 +12,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: compExpr-old.test,v 1.3 1999/06/26 03:54:11 jenn Exp $
+# RCS: @(#) $Id: compExpr-old.test,v 1.4 1999/06/30 00:17:07 jenn Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -671,7 +671,9 @@ test expr-19.1 {expr and interpreter result object resetting} {
} 3
# cleanup
-unset a
+if {[info exists a]} {
+ unset a
+}
::tcltest::cleanupTests
return