diff options
author | dgp <dgp@users.sourceforge.net> | 2017-10-30 03:01:46 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2017-10-30 03:01:46 (GMT) |
commit | c8342af33835a5c29a3bdb30c81f710cdb3df325 (patch) | |
tree | a7729c9ad723f88d70dc6d1a6d3276810a9dcc37 | |
parent | c668ed46ecacba2c4093513513a348622a0760c9 (diff) | |
parent | 1d0751deb7fafb3e276e1ba022ef023e795946fb (diff) | |
download | tcl-c8342af33835a5c29a3bdb30c81f710cdb3df325.zip tcl-c8342af33835a5c29a3bdb30c81f710cdb3df325.tar.gz tcl-c8342af33835a5c29a3bdb30c81f710cdb3df325.tar.bz2 |
merge 8.6
-rw-r--r-- | tests/assemble.test | 2 | ||||
-rw-r--r-- | tests/execute.test | 6 | ||||
-rw-r--r-- | tests/resolver.test | 9 |
3 files changed, 7 insertions, 10 deletions
diff --git a/tests/assemble.test b/tests/assemble.test index d17bfd9..6e5308d 100644 --- a/tests/assemble.test +++ b/tests/assemble.test @@ -852,7 +852,7 @@ test assemble-8.5 {bad context} { -body { namespace eval assem { set x 1 - list [catch {assemble {load x}} result] $result $errorCode + list [catch {assemble {load x}} result opts] $result [dict get $opts -errorcode] } } -result {1 {cannot use this instruction to create a variable in a non-proc context} {TCL ASSEM LVT}} diff --git a/tests/execute.test b/tests/execute.test index 5b8ce2d..6c277f8 100644 --- a/tests/execute.test +++ b/tests/execute.test @@ -724,7 +724,7 @@ test execute-6.14 {Tcl_ExprObj: exprcode context validation} -setup { } set result {} lappend result [expr $e] - lappend result [namespace eval foo {expr $e}] + lappend result [namespace eval foo [list expr $e]] } -cleanup { namespace delete foo } -result {1 2} @@ -733,11 +733,11 @@ test execute-6.15 {Tcl_ExprObj: exprcode name resolution epoch validation} -setu } -body { set e { [llength {}]+1 } set result {} - lappend result [namespace eval foo {expr $e}] + lappend result [namespace eval foo [list expr $e]] namespace eval foo { proc llength {args} {return 1} } - lappend result [namespace eval foo {expr $e}] + lappend result [namespace eval foo [list expr $e]] } -cleanup { namespace delete foo } -result {1 2} diff --git a/tests/resolver.test b/tests/resolver.test index 9bb4c08..b0b395d 100644 --- a/tests/resolver.test +++ b/tests/resolver.test @@ -139,13 +139,10 @@ test resolver-1.5 {cmdNameObj sharing vs. cmd resolver: other than global NS} -s variable r2 "" } } -constraints testinterpresolver -body { - set r0 [namespace eval ::ns2 {x}] - set r1 [namespace eval ::ns2 {z}] - namespace eval ::ns2 { + list [namespace eval ::ns2 {x}] [namespace eval ::ns2 {z}] [namespace eval ::ns2 { namespace import ::ns1::z - set r2 [z] - } - list $r0 $r1 $r2 + z + }] } -cleanup { testinterpresolver down namespace delete ::ns2 |