summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-06-17 00:53:04 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-06-17 00:53:04 (GMT)
commit5f37ca27b1c063da4d683acdadc4ac1e458fa543 (patch)
treeedceb0c6951153cfff0e2f2ee9a653ecae86314e /tests
parentd5ee2656ca67c1e5b1bd7a57a84a51f9dc22bcca (diff)
parent8824470ed0704024b804da2d301cf0d05a63ee04 (diff)
downloadtcl-5f37ca27b1c063da4d683acdadc4ac1e458fa543.zip
tcl-5f37ca27b1c063da4d683acdadc4ac1e458fa543.tar.gz
tcl-5f37ca27b1c063da4d683acdadc4ac1e458fa543.tar.bz2
merge 8.6
Diffstat (limited to 'tests')
-rw-r--r--tests/event.test28
-rw-r--r--tests/info.test17
2 files changed, 45 insertions, 0 deletions
diff --git a/tests/event.test b/tests/event.test
index 0d1b06c..207c799 100644
--- a/tests/event.test
+++ b/tests/event.test
@@ -583,6 +583,34 @@ test event-11.6 {Tcl_VwaitCmd procedure: round robin scheduling, same source} {
removeFile $test2file
list $x $y $z
} {3 3 done}
+test event-11.7 {Bug 16828b3744} {
+ after idle {
+ set ::t::v 1
+ namespace delete ::t
+ }
+ namespace eval ::t {
+ vwait ::t::v
+ }
+} {}
+test event-11.8 {Bug 16828b3744} -setup {
+ oo::class create A {
+ variable continue
+
+ method start {} {
+ after idle [self] destroy
+
+ set continue 0
+ vwait [namespace current]::continue
+ }
+ destructor {
+ set continue 1
+ }
+ }
+} -body {
+ [A new] start
+} -cleanup {
+ A destroy
+} -result {}
test event-12.1 {Tcl_UpdateCmd procedure} -returnCodes error -body {
update a b
diff --git a/tests/info.test b/tests/info.test
index 3057dd2..e0fddb3 100644
--- a/tests/info.test
+++ b/tests/info.test
@@ -2398,6 +2398,23 @@ test info-33.35 {{*}, literal, simple, bytecompiled} -body {
# -------------------------------------------------------------------------
unset -nocomplain res
+test info-39.0 {Bug 4b61afd660} -setup {
+ proc probe {} {
+ return [dict get [info frame -1] line]
+ }
+ set body {
+ set cmd probe
+ $cmd
+ }
+ proc demo {} $body
+} -body {
+ demo
+} -cleanup {
+ unset -nocomplain body
+ rename demo {}
+ rename probe {}
+} -result 3
+
# cleanup
catch {namespace delete test_ns_info1 test_ns_info2}
::tcltest::cleanupTests