]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.0195: some tests fail when run in the GUI v8.2.0195
authorBram Moolenaar <Bram@vim.org>
Sun, 2 Feb 2020 12:47:06 +0000 (13:47 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 2 Feb 2020 12:47:06 +0000 (13:47 +0100)
Problem:    Some tests fail when run in the GUI.
Solution:   Make sure the window width is enough.  In the GUI run terminal Vim
            in the terminal, if possible.

src/testdir/check.vim
src/testdir/test_highlight.vim
src/testdir/test_terminal.vim
src/version.c

index 6efa348e5ad29671da4f909eb6c0faab6c3b1520..687610195b758a30392eda9b690a271f4cbb93c5 100644 (file)
@@ -1,4 +1,5 @@
 source shared.vim
+source term_util.vim
 
 command -nargs=1 MissingFeature throw 'Skipped: ' .. <args> .. ' feature missing'
 
index f718e90dfbd6c54e2bc6c9b769a50f1299f8f0f7..ac6a10102e7a280e3e4a60c2605e3a37403d84b5 100644 (file)
@@ -594,6 +594,8 @@ endfunc
 
 func Test_wincolor()
   CheckScreendump
+  " make sure the width is enough for the test
+  set columns=80
 
   let lines =<< trim END
        set cursorline cursorcolumn rnu
@@ -686,7 +688,8 @@ func Test_1_highlight_Normalgroup_exists()
   endif
 endfunc
 
-function Test_no_space_before_xxx()
+" Do this test last, sometimes restoring the columns doesn't work
+function Test_z_no_space_before_xxx()
   let l:org_columns = &columns
   set columns=17
   let l:hi_StatusLineTermNC = join(split(execute('hi StatusLineTermNC')))
index 7fda9f65b5b228b93d72761fb9b0be45f08a8bc9..3ff5db6852cc0bfdb94a32332afd9807d2be3a12 100644 (file)
@@ -2331,7 +2331,7 @@ func Test_terminal_in_popup()
     in a popup window
   END
   call writefile(text, 'Xtext')
-  let cmd = GetVimCommandClean()
+  let cmd = GetVimCommandCleanTerm()
   let lines = [
        \ 'call setline(1, range(20))',
        \ 'hi PopTerm ctermbg=grey',
index 549c78c8b1c5c1be8ee0d9d85694369385912ec7..65d961d02ef73ab90481069757c4997034d01401 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    195,
 /**/
     194,
 /**/