0
0
mirror of https://github.com/vim/vim.git synced 2025-07-24 10:45:12 -04:00

patch 8.2.3344: vimscript test fails

Problem:    Vimscript test fails.
Solution:   Have test verify first error instead of second
This commit is contained in:
Bram Moolenaar 2021-08-14 15:16:00 +02:00
parent 4830c211a4
commit d2e9ccee90
2 changed files with 8 additions and 1 deletions

View File

@ -5657,7 +5657,12 @@ func Test_throw_multi_error()
call EXEC(cmd . ' novar #') " normal plus syntax error
catch /^Vim\((\a\+)\)\=:/
Xloop 'e'
call assert_match('E488: Trailing characters', v:exception)
if cmd =~ 'unlet'
" TODO: should get error for 'novar'
call assert_match('E488: Trailing characters', v:exception)
else
call assert_match('E121: Undefined variable: novar', v:exception)
endif
finally
Xloop 'f'
call assert_equal("", v:errmsg)

View File

@ -755,6 +755,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3344,
/**/
3343,
/**/