summaryrefslogtreecommitdiffstats
path: root/tests/uplevel.test
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2019-09-06 17:33:25 (GMT)
committersebres <sebres@users.sourceforge.net>2019-09-06 17:33:25 (GMT)
commitfda6aed43a27aa585c9ad386bf34ec8a0e18704f (patch)
tree539111d994b25b50a70e2765776d732aef097522 /tests/uplevel.test
parent10147df9b8eff9d63134fb4186c1a2fbb8aba7c7 (diff)
parent1a36c007cb9352f948bd81ead38ad2cba919d3c8 (diff)
downloadtcl-fda6aed43a27aa585c9ad386bf34ec8a0e18704f.zip
tcl-fda6aed43a27aa585c9ad386bf34ec8a0e18704f.tar.gz
tcl-fda6aed43a27aa585c9ad386bf34ec8a0e18704f.tar.bz2
merge 8.6
Diffstat (limited to 'tests/uplevel.test')
-rw-r--r--tests/uplevel.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/uplevel.test b/tests/uplevel.test
index be2268a..2cbea1a 100644
--- a/tests/uplevel.test
+++ b/tests/uplevel.test
@@ -83,6 +83,16 @@ test uplevel-3.4 {uplevel to same level} {
a1
} 55
+test uplevel-4.0.1 {error: non-existent level} -body {
+ uplevel #0 { uplevel { set y 222 } }
+} -returnCodes error -result {bad level "1"}
+test uplevel-4.0.2 {error: non-existent level} -setup {
+ interp create i
+} -body {
+ i eval { uplevel { set y 222 } }
+} -returnCodes error -result {bad level "1"} -cleanup {
+ interp delete i
+}
test uplevel-4.1 {error: non-existent level} -returnCodes error -body {
apply {{} {
uplevel #2 {set y 222}