diff options
author | dgp <dgp@users.sourceforge.net> | 2009-10-29 17:21:17 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2009-10-29 17:21:17 (GMT) |
commit | 3171fee389411d045a94519d6e71bb80f9a20f74 (patch) | |
tree | ed9cdbb225652a13b963624c9b6b5c344b832bac /tests/apply.test | |
parent | 034c88b1943822123dd702a4f36f99a7835cb86b (diff) | |
download | tcl-3171fee389411d045a94519d6e71bb80f9a20f74.zip tcl-3171fee389411d045a94519d6e71bb80f9a20f74.tar.gz tcl-3171fee389411d045a94519d6e71bb80f9a20f74.tar.bz2 |
Test hygiene for the ::tmp variable
Diffstat (limited to 'tests/apply.test')
-rw-r--r-- | tests/apply.test | 6 |
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 |