diff options
| author | dgp@users.sourceforge.net <dgp> | 2015-07-17 21:22:22 (GMT) |
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2015-07-17 21:22:22 (GMT) |
| commit | dee9a9cbe77ea21d498f9c6c3885df0a93c8da50 (patch) | |
| tree | eb303b04e47fe05468dc5620171a0ee2c8453095 /tests/execute.test | |
| parent | 3b5dff82b3bea4153a4034c95ebdc7af76076428 (diff) | |
| parent | 77985b9936c999f8cbcb0f87825fedb45afada9a (diff) | |
| download | tcl-dee9a9cbe77ea21d498f9c6c3885df0a93c8da50.zip tcl-dee9a9cbe77ea21d498f9c6c3885df0a93c8da50.tar.gz tcl-dee9a9cbe77ea21d498f9c6c3885df0a93c8da50.tar.bz2 | |
merge trunk
Diffstat (limited to 'tests/execute.test')
| -rw-r--r-- | tests/execute.test | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/execute.test b/tests/execute.test index 94af158..9a2ffbd 100644 --- a/tests/execute.test +++ b/tests/execute.test @@ -1043,6 +1043,29 @@ test execute-11.1 {Bug 3142026: GrowEvaluationStack off-by-one} -setup { } -cleanup { interp delete slave } -result ok + +test execute-11.2 {Bug 268b23df11} -setup { + proc zero {} {return 0} + proc crash {} {expr {abs([zero])}} + proc noop args {} + trace add execution crash enterstep noop +} -body { + crash +} -cleanup { + trace remove execution crash enterstep noop + rename noop {} + rename crash {} + rename zero {} +} -result 0 +test execute-11.3 {Bug a0ece9d6d4} -setup { + proc crash {} {expr {rand()}} + trace add execution crash enterstep {apply {args {info frame -2}}} +} -body { + string is double [crash] +} -cleanup { + trace remove execution crash enterstep {apply {args {info frame -2}}} + rename crash {} +} -result 1 # cleanup if {[info commands testobj] != {}} { |
