diff options
author | dgp <dgp@users.sourceforge.net> | 2012-06-11 17:49:12 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2012-06-11 17:49:12 (GMT) |
commit | 638e88055f9816699128700349fcfb3947d72c2a (patch) | |
tree | 2de722a252b06dbff9c8bac7239a3b99d8fcbf85 /tests/proc.test | |
parent | 1b90958d3826436cc2b2cb7a0ecfd8d32c91fd30 (diff) | |
parent | da206716d027775cf443cf2f3be8acb1949ac398 (diff) | |
download | tcl-638e88055f9816699128700349fcfb3947d72c2a.zip tcl-638e88055f9816699128700349fcfb3947d72c2a.tar.gz tcl-638e88055f9816699128700349fcfb3947d72c2a.tar.bz2 |
3532959 Make sure the lifetime management of entries in the linePBodyPtr hash
table can tolerate either order of teardown, interp first, or Proc first.
Diffstat (limited to 'tests/proc.test')
-rw-r--r-- | tests/proc.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/proc.test b/tests/proc.test index ed3c4b6..e06720e 100644 --- a/tests/proc.test +++ b/tests/proc.test @@ -374,6 +374,15 @@ test proc-7.3 {Returning loop exception from redefined cmd: Bug 729692} -body { } -cleanup { namespace delete ugly } -result 4 + +test proc-7.4 {Proc struct outlives its interp: Bug 3532959} { + set lambda x + lappend lambda {set a 1} + interp create slave + slave eval [list apply $lambda foo] + interp delete slave + unset lambda +} {} # cleanup catch {rename p ""} |