summaryrefslogtreecommitdiffstats
path: root/tests/info.test
diff options
context:
space:
mode:
authorandreas_kupries <akupries@shaw.ca>2009-11-09 22:59:13 (GMT)
committerandreas_kupries <akupries@shaw.ca>2009-11-09 22:59:13 (GMT)
commit6d01aeb1fd2c8828a830d155acb60f6fdea98327 (patch)
treef8acb55e02c3d92551e1ae7dc489d7604271786a /tests/info.test
parent11dab762d5790cc735bd9b5239406d0b076f136f (diff)
downloadtcl-6d01aeb1fd2c8828a830d155acb60f6fdea98327.zip
tcl-6d01aeb1fd2c8828a830d155acb60f6fdea98327.tar.gz
tcl-6d01aeb1fd2c8828a830d155acb60f6fdea98327.tar.bz2
* tests/info.test: Resolve ambiguous resolution of variable
"res". Forward port from 8.5
Diffstat (limited to 'tests/info.test')
-rw-r--r--tests/info.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/info.test b/tests/info.test
index 7e89d8e..da54562 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.69 2009/10/29 22:20:12 dkf Exp $
+# RCS: @(#) $Id: info.test,v 1.70 2009/11/09 22:59:13 andreas_kupries Exp $
if {{::tcltest} ni [namespace children]} {
package require tcltest 2
@@ -1033,7 +1033,7 @@ set body {set flag 0
set a c
set res [info frame 0]} ;# line 3!
-test info-31.0 {ns eval, script in variable} -body {
+test info-31.0 {ns eval, script in variable} -body {set res {}
namespace eval foo $body
return $foo::res
} -result {type eval line 3 cmd {info frame 0} level 0} -cleanup {