summaryrefslogtreecommitdiffstats
path: root/tests/coroutine.test
diff options
context:
space:
mode:
authoroehhar <harald.oehlmann@elmicron.de>2014-10-17 10:00:39 (GMT)
committeroehhar <harald.oehlmann@elmicron.de>2014-10-17 10:00:39 (GMT)
commit63acce0c26f00ce8e3d4acb5840db0105f47631d (patch)
tree239e5dd2f89b978e46ca772b0d367cce522e8377 /tests/coroutine.test
parentd9a8b078d1c03a51b8835666ddd27e0e54a2817d (diff)
parentceff856085045650b5b10e2d2fea1355ba78e4c4 (diff)
downloadtcl-63acce0c26f00ce8e3d4acb5840db0105f47631d.zip
tcl-63acce0c26f00ce8e3d4acb5840db0105f47631d.tar.gz
tcl-63acce0c26f00ce8e3d4acb5840db0105f47631d.tar.bz2
Merge trunk
Diffstat (limited to 'tests/coroutine.test')
-rw-r--r--tests/coroutine.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/coroutine.test b/tests/coroutine.test
index 05b58c9..205da67 100644
--- a/tests/coroutine.test
+++ b/tests/coroutine.test
@@ -726,6 +726,20 @@ test coroutine-7.11 {yieldto context nuke: Bug a90d9331bc} -setup {
catch {namespace delete ::cotest}
catch {rename cotest ""}
} -result {yieldto called in deleted namespace}
+test coroutine-7.12 {coro floor above street level #3008307} -body {
+ proc c {} {
+ yield
+ }
+ proc cc {} {
+ coroutine C c
+ }
+ proc boom {} {
+ cc ; # coro created at level 2
+ C ; # and called at level 1
+ }
+ boom ; # does not crash: the coro floor is a good insulator
+ list
+} -result {}
# cleanup