summaryrefslogtreecommitdiffstats
path: root/tests/apply.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2009-10-29 17:21:17 (GMT)
committerdgp <dgp@users.sourceforge.net>2009-10-29 17:21:17 (GMT)
commit7ba094d5c64eb844c4fec27beb598cf43c90b821 (patch)
treeed9cdbb225652a13b963624c9b6b5c344b832bac /tests/apply.test
parent80ed2d3225fd713abeabba326c657ee9567dc1c5 (diff)
downloadtcl-7ba094d5c64eb844c4fec27beb598cf43c90b821.zip
tcl-7ba094d5c64eb844c4fec27beb598cf43c90b821.tar.gz
tcl-7ba094d5c64eb844c4fec27beb598cf43c90b821.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 8c12216..4e8eeea 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.12 2007/12/13 15:26:04 dgp Exp $
+# RCS: @(#) $Id: apply.test,v 1.12.2.1 2009/10/29 17:21:17 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