summaryrefslogtreecommitdiffstats
path: root/tests/proc.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2012-06-11 17:49:12 (GMT)
committerdgp <dgp@users.sourceforge.net>2012-06-11 17:49:12 (GMT)
commit638e88055f9816699128700349fcfb3947d72c2a (patch)
tree2de722a252b06dbff9c8bac7239a3b99d8fcbf85 /tests/proc.test
parent1b90958d3826436cc2b2cb7a0ecfd8d32c91fd30 (diff)
parentda206716d027775cf443cf2f3be8acb1949ac398 (diff)
downloadtcl-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.test9
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 ""}