summaryrefslogtreecommitdiffstats
path: root/tests/trace.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-02-19 09:50:12 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-02-19 09:50:12 (GMT)
commit54ab86e08cf1c4b8cac8864c56c4bf48435fa0b9 (patch)
treec6113f5ab4d34be705f30ffe00810d518778980b /tests/trace.test
parente3bbee7b8abd049f8e6173729da88ef2e454b0fa (diff)
downloadtcl-54ab86e08cf1c4b8cac8864c56c4bf48435fa0b9.zip
tcl-54ab86e08cf1c4b8cac8864c56c4bf48435fa0b9.tar.gz
tcl-54ab86e08cf1c4b8cac8864c56c4bf48435fa0b9.tar.bz2
Add test-case for Bug #2438181 (which passes in Tcl 8.4 but fails in 8.5/8.6).
Provided by Poor Yorick
Diffstat (limited to 'tests/trace.test')
-rw-r--r--tests/trace.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/trace.test b/tests/trace.test
index 80bdb4a..9a0912d 100644
--- a/tests/trace.test
+++ b/tests/trace.test
@@ -1666,6 +1666,16 @@ test trace-21.11 {trace execution and alias} -setup {
rename ::x {}
} -result {:: ::}
+proc set2 args {
+ set {*}$args
+}
+
+test trace-21.12 {bug 2438181} -setup {
+ trace add execution set2 leave {puts one two three #;}
+} -body {
+ set2 a hello
+} -returnCodes error -result {wrong # args: should be "puts ?-nonewline? ?channelId? string"}
+
proc factorial {n} {
if {$n != 1} { return [expr {$n * [factorial [expr {$n -1 }]]}] }
return 1