summaryrefslogtreecommitdiffstats
path: root/tests/cmdMZ.test
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2019-05-16 18:17:52 (GMT)
committersebres <sebres@users.sourceforge.net>2019-05-16 18:17:52 (GMT)
commit2865a8da13749af3807ff9ea42c079f8c6c73133 (patch)
tree87c5f3b9c83fe3c86a41b6bf2886c74ecdbe3ffe /tests/cmdMZ.test
parentccc592df50d217757d74cb343d046a92d76860c1 (diff)
downloadtcl-2865a8da13749af3807ff9ea42c079f8c6c73133.zip
tcl-2865a8da13749af3807ff9ea42c079f8c6c73133.tar.gz
tcl-2865a8da13749af3807ff9ea42c079f8c6c73133.tar.bz2
small amend to [ac566e9df84daeab] with rollback of done/continue optimization
Diffstat (limited to 'tests/cmdMZ.test')
-rw-r--r--tests/cmdMZ.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/cmdMZ.test b/tests/cmdMZ.test
index 09fff07..db72a44 100644
--- a/tests/cmdMZ.test
+++ b/tests/cmdMZ.test
@@ -433,6 +433,12 @@ test cmdMZ-6.10 {Tcl_TimeRateObjCmd: huge overhead cause 0us result} {
[expr {[lindex $m1 4] == 1000000}] \
[expr {[lindex $m1 6] <= 0.001}]
} {1 1 1 1}
+test cmdMZ-6.11 {Tcl_TimeRateObjCmd: done/continue optimization rollback} {
+ set m1 {set m2 ok}
+ if 1 $m1
+ timerate $m1 1000 10
+ if 1 $m1; # if rollback is missing throws an error: invoked "continue" outside of a loop
+} ok
# The tests for Tcl_WhileObjCmd are in while.test