diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-02-19 11:36:12 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-02-19 11:36:12 (GMT) |
commit | 1973e8e40f13ed620980acc7d0742ace61855a3f (patch) | |
tree | 0b4fe40c61217c72dd682087696ae4a1236f9ff7 /tests/trace.test | |
parent | 08bc505b413fe257a9a10112856389451bfc0160 (diff) | |
parent | a01b1afbddee53e1e90eb48f3ceb4ce266b24f0a (diff) | |
download | tcl-1973e8e40f13ed620980acc7d0742ace61855a3f.zip tcl-1973e8e40f13ed620980acc7d0742ace61855a3f.tar.gz tcl-1973e8e40f13ed620980acc7d0742ace61855a3f.tar.bz2 |
Fix bug #2438181: Incorrect error reporting in traces.
Test-case and fix provided by Poor Yorick.
Diffstat (limited to 'tests/trace.test')
-rw-r--r-- | tests/trace.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/trace.test b/tests/trace.test index b4957c0..41ad00d 100644 --- a/tests/trace.test +++ b/tests/trace.test @@ -1670,6 +1670,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 1 -result {wrong # args: should be "puts ?-nonewline? ?channelId? string"} + proc factorial {n} { if {$n != 1} { return [expr {$n * [factorial [expr {$n -1 }]]}] } return 1 |