diff options
author | stanton <stanton> | 1999-04-30 22:44:59 (GMT) |
---|---|---|
committer | stanton <stanton> | 1999-04-30 22:44:59 (GMT) |
commit | fe45fa11e3df7cd37954c0f8051d9948114951b6 (patch) | |
tree | a193f27eb18d04a30f8b4f663611d5957c2f5f6a /tests | |
parent | b81b15c0f284194a10d17be0a8daa622ec578d94 (diff) | |
download | tcl-fe45fa11e3df7cd37954c0f8051d9948114951b6.zip tcl-fe45fa11e3df7cd37954c0f8051d9948114951b6.tar.gz tcl-fe45fa11e3df7cd37954c0f8051d9948114951b6.tar.bz2 |
* Merged changes from 8.1.0 branch
Diffstat (limited to 'tests')
-rw-r--r-- | tests/env.test | 4 | ||||
-rw-r--r-- | tests/parse.test | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/tests/env.test b/tests/env.test index 27656e4..543a939 100644 --- a/tests/env.test +++ b/tests/env.test @@ -11,7 +11,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: env.test,v 1.4 1999/04/16 00:47:26 stanton Exp $ +# RCS: @(#) $Id: env.test,v 1.5 1999/04/30 22:45:02 stanton Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { source [file join [pwd] [file dirname [info script]] defs.tcl] @@ -173,7 +173,7 @@ test env-4.5 {unsetting international environment variables} {execCommandExists} test env-5.0 {corner cases - set a value, it should exist} {} { set temp [lindex [array names env] end] - set x env($temp) + set x $env($temp) set env($temp) a set result [set env($temp)] set env($temp) $x diff --git a/tests/parse.test b/tests/parse.test index 1f36063..ccedc77 100644 --- a/tests/parse.test +++ b/tests/parse.test @@ -8,7 +8,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: parse.test,v 1.3 1999/04/16 00:47:31 stanton Exp $ +# RCS: @(#) $Id: parse.test,v 1.4 1999/04/30 22:45:03 stanton Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { source [file join [pwd] [file dirname [info script]] defs.tcl] @@ -723,6 +723,10 @@ test parse-15.56 {CommandComplete procedure} { test parse-15.57 {CommandComplete procedure} { info complete "# Comment should be complete command" } 1 +test parse-15.58 {CommandComplete procedure, memory leaks} { + info complete "1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22" +} 1 + # cleanup catch {unset a} |