summaryrefslogtreecommitdiffstats
path: root/tests/coroutine.test
diff options
context:
space:
mode:
authoroehhar <harald.oehlmann@elmicron.de>2014-10-17 14:28:46 (GMT)
committeroehhar <harald.oehlmann@elmicron.de>2014-10-17 14:28:46 (GMT)
commit0237d15593de152f8d82bd4b852ed260d73dfbd5 (patch)
treeadde55fda8a9510431640463f98f56fe18a3af43 /tests/coroutine.test
parent9acec29bc1cc79293e2760411a3f07ffdd8113e1 (diff)
parentfc47c8aae5f8c68455ee588cfbe4f707e91bde7d (diff)
downloadtcl-tip_428.zip
tcl-tip_428.tar.gz
tcl-tip_428.tar.bz2
Merge trunktip_428
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