diff options
author | sebres <sebres@users.sourceforge.net> | 2019-09-06 17:29:59 (GMT) |
---|---|---|
committer | sebres <sebres@users.sourceforge.net> | 2019-09-06 17:29:59 (GMT) |
commit | 1a36c007cb9352f948bd81ead38ad2cba919d3c8 (patch) | |
tree | 24315cf99cb307860ef261a9dab6ba4720b8fb82 /tests/upvar.test | |
parent | 779aba1c853be107103b3d87ac6db4bf9bd9c6e6 (diff) | |
parent | 5ed9c57d7a6452cb9bb3ae0c72953cbbf7b81c24 (diff) | |
download | tcl-1a36c007cb9352f948bd81ead38ad2cba919d3c8.zip tcl-1a36c007cb9352f948bd81ead38ad2cba919d3c8.tar.gz tcl-1a36c007cb9352f948bd81ead38ad2cba919d3c8.tar.bz2 |
merge 8.5 (no functional changes on tclProc, it was already fixed there - only test cases)
Diffstat (limited to 'tests/upvar.test')
-rw-r--r-- | tests/upvar.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/upvar.test b/tests/upvar.test index 437f422..908fddd 100644 --- a/tests/upvar.test +++ b/tests/upvar.test @@ -304,6 +304,17 @@ test upvar-8.3 {errors in upvar command} -returnCodes error -body { proc p1 {} {upvar a b c} p1 } -result {bad level "a"} +test upvar-8.3.1 {bad level for upvar (upvar at top-level, bug [775ee88560])} -body { + proc p1 {} { uplevel { upvar b b; lappend b UNEXPECTED } } + uplevel #0 { p1 } +} -returnCodes error -result {bad level "1"} +test upvar-8.3.2 {bad level for upvar (upvar at top-level, bug [775ee88560])} -setup { + interp create i +} -body { + i eval { upvar b b; lappend b UNEXPECTED } +} -returnCodes error -result {bad level "1"} -cleanup { + interp delete i +} test upvar-8.4 {errors in upvar command} -returnCodes error -body { proc p1 {} {upvar 0 b b} p1 |