summaryrefslogtreecommitdiffstats
path: root/tests/info.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-06-28 22:49:22 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-06-28 22:49:22 (GMT)
commitd2629fb2726fa18af638288c9c9aa89369b9fade (patch)
tree5a668f6c4e6abf7a07037bf9a931592971a77f11 /tests/info.test
parent2880e7da55a9d5ff7d8ba8fed48743f0e15733a4 (diff)
parentedc450c53752cf92b00a45883fee2d66a2bde27c (diff)
downloadtcl-d2629fb2726fa18af638288c9c9aa89369b9fade.zip
tcl-d2629fb2726fa18af638288c9c9aa89369b9fade.tar.gz
tcl-d2629fb2726fa18af638288c9c9aa89369b9fade.tar.bz2
merge 8.6
Diffstat (limited to 'tests/info.test')
-rw-r--r--tests/info.test17
1 files changed, 17 insertions, 0 deletions
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