diff options
author | dgp <dgp@users.sourceforge.net> | 2004-09-22 03:19:50 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2004-09-22 03:19:50 (GMT) |
commit | 100dd6f8cbd58105f48abd5923dfcad39e8392cf (patch) | |
tree | a7d13aed7a794f8fa9e3fbae81799245576e3ac5 /tests/appendComp.test | |
parent | 0fab4196b86cedddde357a45a507d28394f69041 (diff) | |
download | tcl-100dd6f8cbd58105f48abd5923dfcad39e8392cf.zip tcl-100dd6f8cbd58105f48abd5923dfcad39e8392cf.tar.gz tcl-100dd6f8cbd58105f48abd5923dfcad39e8392cf.tar.bz2 |
* generic/tclCompCmds.c: Tolerate [append] syntax errors
* tests/appendComp.test (8.1): at compile time, and allow runtime
to raise the error (or succeed if a redefined [append] allows).
Diffstat (limited to 'tests/appendComp.test')
-rw-r--r-- | tests/appendComp.test | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/tests/appendComp.test b/tests/appendComp.test index 9eaff48..4f4cb8b 100644 --- a/tests/appendComp.test +++ b/tests/appendComp.test @@ -11,10 +11,10 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: appendComp.test,v 1.6 2004/05/25 15:33:28 dkf Exp $ +# RCS: @(#) $Id: appendComp.test,v 1.7 2004/09/22 03:19:52 dgp Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { - package require tcltest + package require tcltest 2 namespace import -force ::tcltest::* } catch {unset x} @@ -351,6 +351,20 @@ test appendComp-7.9 {append var does not trigger read trace} { bar } {0} +test appendComp-8.1 {TCL_OUT_LINE_COMPILE, not TCL_ERROR} -setup { + interp create slave +} -body { + slave eval { + proc foo {} { + proc append args {} + append + } + foo + } +} -cleanup { + interp delete slave +} -result {} + catch {unset i x result y} catch {rename foo ""} catch {rename bar ""} |