diff options
-rw-r--r-- | src/testdir/check.vim | 11 | ||||
-rw-r--r-- | src/testdir/test_gui.vim | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 15 insertions, 0 deletions
diff --git a/src/testdir/check.vim b/src/testdir/check.vim index 4c5f3eef5d..d6bfe004a6 100644 --- a/src/testdir/check.vim +++ b/src/testdir/check.vim @@ -14,6 +14,17 @@ func CheckFeature(name) endif 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 -nargs=1 CheckOption call CheckOption(<f-args>) func CheckOption(name) diff --git a/src/testdir/test_gui.vim b/src/testdir/test_gui.vim index 762e332edc..b727372a26 100644 --- a/src/testdir/test_gui.vim +++ b/src/testdir/test_gui.vim @@ -1118,6 +1118,8 @@ func TestGuiTabToolTip() endfunc func Test_gui_tablabel_tooltip() + CheckNotFeature gui_athena + %bw! " Removing the tabline at the end of this test, reduces the window height by " one. Save and restore it after the test. diff --git a/src/version.c b/src/version.c index 0d4fc1242d..3b8a50a701 100644 --- a/src/version.c +++ b/src/version.c @@ -756,6 +756,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3093, +/**/ 3092, /**/ 3091, |