summaryrefslogtreecommitdiffstats
path: root/tests/apply.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2009-10-29 17:21:48 (GMT)
committerdgp <dgp@users.sourceforge.net>2009-10-29 17:21:48 (GMT)
commit4c88e5710e2844b84cd5893e41bc3d369c37d65c (patch)
tree869c8c9633df43ae1f9ecb430490394374cd5df5 /tests/apply.test
parente06f616f4b1db4e440fd0883a4987547208d8dd9 (diff)
downloadtcl-4c88e5710e2844b84cd5893e41bc3d369c37d65c.zip
tcl-4c88e5710e2844b84cd5893e41bc3d369c37d65c.tar.gz
tcl-4c88e5710e2844b84cd5893e41bc3d369c37d65c.tar.bz2
test hygiene for the ::tmp variable
Diffstat (limited to 'tests/apply.test')
-rw-r--r--tests/apply.test6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/apply.test b/tests/apply.test
index 95f4fd8..809fdbe 100644
--- a/tests/apply.test
+++ b/tests/apply.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: apply.test,v 1.13 2008/07/19 22:50:39 nijtmans Exp $
+# RCS: @(#) $Id: apply.test,v 1.14 2009/10/29 17:21:48 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2.2
@@ -277,7 +277,7 @@ test apply-9.1 {leaking internal rep} -setup {
set leakedBytes [expr {$end - $tmp}]
} -cleanup {
rename getbytes {}
- unset lam
+ unset -nocomplain lam end i tmp leakedBytes
} -result 0
test apply-9.2 {leaking internal rep} -setup {
proc getbytes {} {
@@ -294,6 +294,7 @@ test apply-9.2 {leaking internal rep} -setup {
set leakedBytes [expr {$end - $tmp}]
} -cleanup {
rename getbytes {}
+ unset -nocomplain end i tmp leakedBytes
} -result 0
test apply-9.3 {leaking internal rep} -setup {
proc getbytes {} {
@@ -312,6 +313,7 @@ test apply-9.3 {leaking internal rep} -setup {
set leakedBytes [expr {$end - $tmp}]
} -cleanup {
rename getbytes {}
+ unset -nocomplain end i x tmp leakedBytes
} -result 0
# Tests for the avoidance of recompilation