]> granicus.if.org Git - vim/commitdiff
patch 8.2.3344: vimscript test fails v8.2.3344
authorBram Moolenaar <Bram@vim.org>
Sat, 14 Aug 2021 13:16:00 +0000 (15:16 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 14 Aug 2021 13:16:00 +0000 (15:16 +0200)
Problem:    Vimscript test fails.
Solution:   Have test verify first error instead of second

src/testdir/test_vimscript.vim
src/version.c

index de876589afcbfdfdf75deebf8d147fff67f81a7e..51ef2fc17902cd4298abe98444146fc420172459 100644 (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)
index b493c634150cee414e04f181e030bf9a64585234..97ddb84514bb728f1adec4d549d962fe4820c20c 100644 (file)
@@ -755,6 +755,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3344,
 /**/
     3343,
 /**/