]> granicus.if.org Git - vim/commitdiff
patch 8.2.1542: Vim9: test with invalid SID does not work in the GUI v8.2.1542
authorBram Moolenaar <Bram@vim.org>
Sat, 29 Aug 2020 20:59:17 +0000 (22:59 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 29 Aug 2020 20:59:17 +0000 (22:59 +0200)
Problem:    Vim9: test with invalid SID does not work in the GUI.
Solution:   Skip the test in the GUI.

src/testdir/test_vim9_script.vim
src/version.c

index 662024cbd6a0cfc7aab87f42b8ce0c1a4927dffd..6d520a33ef567639909da1dbe1a8de5f187588a2 100644 (file)
@@ -3261,6 +3261,9 @@ def Test_cmdline_win()
 enddef
 
 def Test_invalid_sid()
+  # TODO: why does this not work in the GUI?
+  CheckNotGui
+
   assert_fails('func <SNR>1234_func', 'E123:')
   if RunVim([], ['wq Xdidit'], '+"func <SNR>1_func"')
     call assert_equal([], readfile('Xdidit'))
index a76e129a56e83e476f8124c1ec71aec5ed6e251f..1a66eb6a31d3e830db6cd97825b7cb53e477c24f 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1542,
 /**/
     1541,
 /**/