summaryrefslogtreecommitdiffstats
path: root/tests
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
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')
-rw-r--r--tests/compExpr-old.test6
-rw-r--r--tests/expr.test6
2 files changed, 8 insertions, 4 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
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