changeset 25615:b0f82974ddf4 v8.2.3344

patch 8.2.3344: vimscript test fails Commit: https://github.com/vim/vim/commit/d2e9ccee90d2b39f4c9fd6cec271ef3fafd76f09 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 14 15:16:00 2021 +0200 patch 8.2.3344: vimscript test fails Problem: Vimscript test fails. Solution: Have test verify first error instead of second
author Bram Moolenaar <Bram@vim.org>
date Sat, 14 Aug 2021 15:30:03 +0200
parents 614b1cf6ca62
children 1c4fe811755c
files src/testdir/test_vimscript.vim src/version.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_vimscript.vim
+++ b/src/testdir/test_vimscript.vim
@@ -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)
--- a/src/version.c
+++ b/src/version.c
@@ -756,6 +756,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3344,
+/**/
     3343,
 /**/
     3342,