summaryrefslogtreecommitdiffstats
path: root/tests/appendComp.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/appendComp.test')
-rw-r--r--tests/appendComp.test23
1 files changed, 21 insertions, 2 deletions
diff --git a/tests/appendComp.test b/tests/appendComp.test
index 8f7e3d4..dc009ce 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.5.4.2 2010/09/01 20:36:20 andreas_kupries Exp $
+# RCS: @(#) $Id: appendComp.test,v 1.9.10.1 2010/09/01 19:42:42 andreas_kupries Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
- package require tcltest
+ package require tcltest 2
namespace import -force ::tcltest::*
}
catch {unset x}
@@ -351,6 +351,21 @@ test appendComp-7.9 {append var does not trigger read trace} {
bar
} {0}
+test appendComp-8.1 {defer error to runtime} -setup {
+ interp create slave
+} -body {
+ slave eval {
+ proc foo {} {
+ proc append args {}
+ append
+ }
+ foo
+ }
+} -cleanup {
+ interp delete slave
+} -result {}
+
+
# New tests for bug 3057639 to show off the more consistent behaviour
# of lappend in both direct-eval and bytecompiled code paths (see
# append.test for the direct-eval variants). lappend now behaves like
@@ -418,6 +433,10 @@ test appendComp-9.3 {bug 3057639, append direct eval, read trace on non-existing
list [catch { foo } msg] $msg
} {0 {new value}}
+
+
+
+
catch {unset i x result y}
catch {rename foo ""}
catch {rename bar ""}