diff options
author | sebres <sebres@users.sourceforge.net> | 2019-09-06 17:33:25 (GMT) |
---|---|---|
committer | sebres <sebres@users.sourceforge.net> | 2019-09-06 17:33:25 (GMT) |
commit | fda6aed43a27aa585c9ad386bf34ec8a0e18704f (patch) | |
tree | 539111d994b25b50a70e2765776d732aef097522 /tests/uplevel.test | |
parent | 10147df9b8eff9d63134fb4186c1a2fbb8aba7c7 (diff) | |
parent | 1a36c007cb9352f948bd81ead38ad2cba919d3c8 (diff) | |
download | tcl-fda6aed43a27aa585c9ad386bf34ec8a0e18704f.zip tcl-fda6aed43a27aa585c9ad386bf34ec8a0e18704f.tar.gz tcl-fda6aed43a27aa585c9ad386bf34ec8a0e18704f.tar.bz2 |
merge 8.6
Diffstat (limited to 'tests/uplevel.test')
-rw-r--r-- | tests/uplevel.test | 10 |
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} |