diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-03-16 14:52:46 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-03-16 14:52:46 (GMT) |
commit | 85461dc671e51b74fb17b69a207abfedbffc1d91 (patch) | |
tree | dfceab88a11dfd23749b50a658e02ee183038edb /tests/proc.test | |
parent | 53a12f1cf62f19f53ef964da17fc300de9e1ecdb (diff) | |
parent | 91a20bc018f04bcf8ce13412ad16cfcbe9e53489 (diff) | |
download | tcl-bug_0b8c387cf7.zip tcl-bug_0b8c387cf7.tar.gz tcl-bug_0b8c387cf7.tar.bz2 |
Merge trunk. bug_0b8c387cf7
Add TCL_EVAL_GLOBAL flag to Tcl_EvalObjEx(), for reason mentioned in [0b8c387cf7].
Diffstat (limited to 'tests/proc.test')
-rw-r--r-- | tests/proc.test | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/proc.test b/tests/proc.test index e06720e..bae5e15 100644 --- a/tests/proc.test +++ b/tests/proc.test @@ -99,7 +99,7 @@ test proc-1.6 {Tcl_ProcObjCmd, namespace code ignores single ":"s in middle or e test proc-1.7 {Tcl_ProcObjCmd, check that formal parameter names are not array elements} -setup { catch {rename p ""} } -returnCodes error -body { - proc p {a(1) a(2)} { + proc p {a(1) a(2)} { set z [expr $a(1)+$a(2)] puts "$z=z, $a(1)=$a(1)" } @@ -107,7 +107,7 @@ test proc-1.7 {Tcl_ProcObjCmd, check that formal parameter names are not array e test proc-1.8 {Tcl_ProcObjCmd, check that formal parameter names are simple names} -setup { catch {rename p ""} } -body { - proc p {b:a b::a} { + proc p {b:a b::a} { } } -returnCodes error -result {formal parameter "b::a" is not a simple name} @@ -329,7 +329,7 @@ test proc-5.1 {Bytecompiling noop; test for correct argument substitution} -body } -cleanup { catch {rename p ""} catch {rename t ""} -} -result {aba} +} -result {aba} test proc-6.1 {ProcessProcResultCode: Bug 647307 (negative return code)} -body { proc a {} {return -code -5} |