diff options
author | Paul Traina <pst@FreeBSD.org> | 1997-11-27 19:49:05 +0000 |
---|---|---|
committer | Paul Traina <pst@FreeBSD.org> | 1997-11-27 19:49:05 +0000 |
commit | f25b19db8d50748d4f75272ae324cad27788d9b3 (patch) | |
tree | cef0bba69f1833802f43364a0cde6945601e665a /contrib/tcl/tests/append.test | |
parent | 539e1e66ff6f99c987c8e03872ddaea5260db8f7 (diff) |
Notes
Diffstat (limited to 'contrib/tcl/tests/append.test')
-rw-r--r-- | contrib/tcl/tests/append.test | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/contrib/tcl/tests/append.test b/contrib/tcl/tests/append.test index 6733454ee100d..f89ade5bd4c9a 100644 --- a/contrib/tcl/tests/append.test +++ b/contrib/tcl/tests/append.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. # -# SCCS: @(#) append.test 1.16 97/04/09 11:29:33 +# SCCS: @(#) append.test 1.17 97/10/28 15:45:52 if {[string compare test [info procs test]] == 1} then {source defs} @@ -156,3 +156,19 @@ test append-6.2 {lappend errors} { set x "" list [catch {lappend x(0) 44} msg] $msg } {1 {can't set "x(0)": variable isn't array}} + +test append-7.1 {lappend-created var and error in trace on that var} { + catch {rename foo ""} + catch {unset x} + trace variable x w foo + proc foo {} {global x; unset x} + catch {lappend x 1} + proc foo {args} {global x; unset x} + info exists x + set x + lappend x 1 + list [info exists x] [catch {set x} msg] $msg +} {0 1 {can't read "x": no such variable}} + +catch {unset x} +catch {rename foo ""} |