summaryrefslogtreecommitdiffstats
path: root/tests/proc.test
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2004-05-02 21:07:16 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2004-05-02 21:07:16 (GMT)
commitefef0985b77ac1d27c583f31ed3431a31e13d61a (patch)
treeb87265d8e87e83bf87ec8d2a99b6908684e90f81 /tests/proc.test
parent449db4ec12153533f6b060c9083761733dfd552e (diff)
downloadtcl-efef0985b77ac1d27c583f31ed3431a31e13d61a.zip
tcl-efef0985b77ac1d27c583f31ed3431a31e13d61a.tar.gz
tcl-efef0985b77ac1d27c583f31ed3431a31e13d61a.tar.bz2
* generic/tclProc.c (TclObjInvokeProc):
* tests/proc.test (proc-3.6): fix for bad quoting of multi-word proc names in error messages [Bug 942757]
Diffstat (limited to 'tests/proc.test')
-rw-r--r--tests/proc.test8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/proc.test b/tests/proc.test
index ce07e88..222a31f 100644
--- a/tests/proc.test
+++ b/tests/proc.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: proc.test,v 1.11 2002/12/11 21:29:52 dgp Exp $
+# RCS: @(#) $Id: proc.test,v 1.11.2.1 2004/05/02 21:07:16 msofer Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -166,9 +166,15 @@ test proc-3.5 {TclObjInterpProc, any old result is reset before appending error
list [catch {p} msg] $msg
} {1 {wrong # args: should be "p x"}}
+test proc-3.6 {TclObjInterpProc, proper quoting of proc name, Bug 942757} {
+ proc {a b c} {x} {info commands 3m}
+ list [catch {{a b c}} msg] $msg
+} {1 {wrong # args: should be "{a b c} x"}}
+
catch {eval namespace delete [namespace children :: test_ns_*]}
catch {rename p ""}
catch {rename {} ""}
+catch {rename {a b c} {}}
catch {unset msg}
if {[catch {package require procbodytest}]} {