summaryrefslogtreecommitdiffstats
path: root/tests/proc.test
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2000-05-03 00:14:35 (GMT)
committerhobbs <hobbs@noemail.net>2000-05-03 00:14:35 (GMT)
commit0408477da8f2bebeac5401682cb257030b9c94b0 (patch)
tree5628ff7c339091fc70acb302e1df79ed6a1940e9 /tests/proc.test
parentabbda72a8b62c9f4cf8f61062a8b82f7f7f18806 (diff)
downloadtcl-0408477da8f2bebeac5401682cb257030b9c94b0.zip
tcl-0408477da8f2bebeac5401682cb257030b9c94b0.tar.gz
tcl-0408477da8f2bebeac5401682cb257030b9c94b0.tar.bz2
* tests/compile.test:
* tests/init.test: * tests/proc.test: * tests/proc-old.test: * tests/rename.test: * generic/tclProc.c: reworked error return for procedures with incorrect args to be like the C Tcl_WrongNumArgs, where a "wrong # args: ..." message is printed out with the args list. FossilOrigin-Name: e9b0d62a314c7178b66e1ff13d409decb92ff035
Diffstat (limited to 'tests/proc.test')
-rw-r--r--tests/proc.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/proc.test b/tests/proc.test
index e4fa1aa..a96373a 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.7 2000/04/10 17:19:03 ericm Exp $
+# RCS: @(#) $Id: proc.test,v 1.8 2000/05/03 00:14:36 hobbs Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -159,7 +159,7 @@ test proc-3.4 {TclObjInterpProc, procs execute in the namespace in which they we
test proc-3.5 {TclObjInterpProc, any old result is reset before appending error msg about missing arguments} {
proc p {x} {info commands 3m}
list [catch {p} msg] $msg
-} {1 {no value given for parameter "x" to "p"}}
+} {1 {wrong # args: should be "p x"}}
catch {eval namespace delete [namespace children :: test_ns_*]}
catch {rename p ""}