summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2008-08-01 17:07:46 (GMT)
committerdgp <dgp@users.sourceforge.net>2008-08-01 17:07:46 (GMT)
commit4500f56474ce572532e86d38956af8fe69eb9d7d (patch)
treecb6e6c9fe17e69ce8da244296b4c40248e4bdf9e /tests
parent6defa80ae783c5777b9d9e152d512bb722e3417d (diff)
downloadtcl-4500f56474ce572532e86d38956af8fe69eb9d7d.zip
tcl-4500f56474ce572532e86d38956af8fe69eb9d7d.tar.gz
tcl-4500f56474ce572532e86d38956af8fe69eb9d7d.tar.bz2
* generic/tclBasic.c: Revised timing of the CmdFrame stack management
* tests/info.test: in TclEvalEx so that the CmdFrame will still be on the stack at the time Tcl_LogCommandInfo is called to append another level of -errorinfo information. Sets the stage to add file and line data to the stack trace. Added test to check that [info frame] functioning remains unchanged by the revision.
Diffstat (limited to 'tests')
-rw-r--r--tests/info.test9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/info.test b/tests/info.test
index d68da9f..d51390f 100644
--- a/tests/info.test
+++ b/tests/info.test
@@ -13,7 +13,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: info.test,v 1.57 2008/07/25 23:06:21 andreas_kupries Exp $
+# RCS: @(#) $Id: info.test,v 1.58 2008/08/01 17:07:48 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -1409,6 +1409,13 @@ test info-38.6 {location information for uplevel, ppl, proc-proc-literal} -match
* {type source line 1342 file info.test cmd control proc ::datal level 1}
* {type source line 1405 file info.test cmd datal proc ::tcltest::RunTest}}
+test info-38.7 {location information for arg substitution} -match glob -body {
+ join [lrange [testevalex {return -level 0 [etrace]}] 0 3] \n
+} -result {* {type source line 728 file info.test cmd {info frame \$level} proc ::etrace level 0}
+* {type eval line 1 cmd etrace proc ::tcltest::RunTest}
+* {type source line 1413 file info.test cmd {testevalex {return -level 0 \[etrace]}} proc ::tcltest::RunTest}
+* {type source line 2298 file tcltest.tcl cmd {uplevel 1 $script} proc ::tcltest::RunTest}}
+
# -------------------------------------------------------------------------
# cleanup