]> granicus.if.org Git - vim/commitdiff
patch 8.0.0401: test fails with missing balloon feature v8.0.0401
authorBram Moolenaar <Bram@vim.org>
Thu, 2 Mar 2017 21:48:01 +0000 (22:48 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 2 Mar 2017 21:48:01 +0000 (22:48 +0100)
Problem:    Test fails with missing balloon feature.
Solution:   Add check for balloon feature.

src/testdir/test_functions.vim
src/version.c

index eeeb4e32532c0c5283ae93ab7e016761c5696d0d..cd58f63fd02bc246c70499256679d8e2b6dd9287 100644 (file)
@@ -468,6 +468,8 @@ func Test_getbufvar()
 endfunc
 
 func Test_balloon_show()
-  " This won't do anything but must not crash either.
-  call balloon_show('hi!')
+  if has('balloon_eval')
+    " This won't do anything but must not crash either.
+    call balloon_show('hi!')
+  endif
 endfunc
index fd4cdb138c69ba101b62f54a55fa0f4dbcb111c8..932132d48ce284a3b2057fb421f473c291d087e5 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    401,
 /**/
     400,
 /**/