summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2008-10-08 15:10:30 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2008-10-08 15:10:30 (GMT)
commit3dac24314a5483f488d9d5255b7fb6bbeba91b3b (patch)
tree24e837db74d4613110a015e7dc96020d98a846ac /tests
parent7d5aead5703d324d80a98cf890f90b9a452cb9a2 (diff)
downloadtcl-3dac24314a5483f488d9d5255b7fb6bbeba91b3b.zip
tcl-3dac24314a5483f488d9d5255b7fb6bbeba91b3b.tar.gz
tcl-3dac24314a5483f488d9d5255b7fb6bbeba91b3b.tar.bz2
* generic/tclBasic (TclInfoCoroutineCmd):
* tests/unsupported.test: arrange for [info coroutine] to return {} when a coroutine is running but the resume command has been deleted [Bug 2153080]
Diffstat (limited to 'tests')
-rw-r--r--tests/unsupported.test12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/unsupported.test b/tests/unsupported.test
index c41d4bc..7085be6 100644
--- a/tests/unsupported.test
+++ b/tests/unsupported.test
@@ -9,7 +9,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: unsupported.test,v 1.12 2008/10/07 17:57:43 msofer Exp $
+# RCS: @(#) $Id: unsupported.test,v 1.13 2008/10/08 15:10:30 msofer Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -739,6 +739,16 @@ test unsupported-C.3.4 {info coroutine} -setup {
rename b {}
} -result ::foo
+test unsupported-C.3.5 {info coroutine} -setup {
+ proc a {} {info coroutine}
+ proc b {} {rename [info coroutine] {}; a}
+} -body {
+ coroutine foo b
+} -cleanup {
+ rename a {}
+ rename b {}
+} -result {}
+
test unsupported-C.4.1 {bug #2093188} -setup {
proc foo {} {