diff options
author | dgp <dgp@users.sourceforge.net> | 2016-06-16 17:15:28 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2016-06-16 17:15:28 (GMT) |
commit | 248348175af7704dabfbd15c9f1b9cb0645db450 (patch) | |
tree | b2f1719bec6d4529e978a19c4f3f74201d60b816 /tests/info.test | |
parent | c96e7bd80446fc3b4804b432ba53e8e31c980aef (diff) | |
parent | 8824470ed0704024b804da2d301cf0d05a63ee04 (diff) | |
download | tcl-248348175af7704dabfbd15c9f1b9cb0645db450.zip tcl-248348175af7704dabfbd15c9f1b9cb0645db450.tar.gz tcl-248348175af7704dabfbd15c9f1b9cb0645db450.tar.bz2 |
[4b61afd660] Allow [info frame] to record line info for substituted command names.
Diffstat (limited to 'tests/info.test')
-rw-r--r-- | tests/info.test | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/info.test b/tests/info.test index 60b9e66..a6a5919 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 |