summaryrefslogtreecommitdiffstats
path: root/tests/expr.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/expr.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/expr.test')
-rw-r--r--tests/expr.test6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/expr.test b/tests/expr.test
index 4a62a30..17a4222 100644
--- a/tests/expr.test
+++ b/tests/expr.test
@@ -10,7 +10,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: expr.test,v 1.4 1999/06/26 03:54:13 jenn Exp $
+# RCS: @(#) $Id: expr.test,v 1.5 1999/06/30 00:17:06 jenn Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -705,6 +705,8 @@ test expr-20.3 {broken substitution of integer digits} {
} {4096 1000}
# cleanup
-unset a
+if {[info exists a]} {
+ unset a
+}
::tcltest::cleanupTests
return