1
0
forked from aniani/vim

patch 8.2.3093: tablabel_tooltip test fails with Athena

Problem:    tablabel_tooltip test fails with Athena. (Dominique Pellé)
Solution:   Skip the test when using Athena. (closes #8508)
This commit is contained in:
Bram Moolenaar
2021-07-03 21:37:59 +02:00
parent 74509239df
commit fb773a3e0a
3 changed files with 15 additions and 0 deletions

View File

@@ -14,6 +14,17 @@ func CheckFeature(name)
endif endif
endfunc endfunc
" Command to check for the absence of a feature.
command -nargs=1 CheckNotFeature call CheckNotFeature(<f-args>)
func CheckNotFeature(name)
if !has(a:name, 1)
throw 'Checking for non-existent feature ' .. a:name
endif
if has(a:name)
throw 'Skipped: ' .. a:name .. ' feature present'
endif
endfunc
" Command to check for the presence of a working option. " Command to check for the presence of a working option.
command -nargs=1 CheckOption call CheckOption(<f-args>) command -nargs=1 CheckOption call CheckOption(<f-args>)
func CheckOption(name) func CheckOption(name)

View File

@@ -1118,6 +1118,8 @@ func TestGuiTabToolTip()
endfunc endfunc
func Test_gui_tablabel_tooltip() func Test_gui_tablabel_tooltip()
CheckNotFeature gui_athena
%bw! %bw!
" Removing the tabline at the end of this test, reduces the window height by " Removing the tabline at the end of this test, reduces the window height by
" one. Save and restore it after the test. " one. Save and restore it after the test.

View File

@@ -755,6 +755,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
3093,
/**/ /**/
3092, 3092,
/**/ /**/