diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-07-03 21:37:59 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-03 21:37:59 +0200 |
commit | fb773a3e0aa9466bb953c29bad0bf4ba34461a40 (patch) | |
tree | 72ca131adf2218c017a721a05c9d4a7bfeba2670 /src/testdir/check.vim | |
parent | 74509239df107b04abe4f30ada12109629c85939 (diff) | |
download | vim-git-fb773a3e0aa9466bb953c29bad0bf4ba34461a40.tar.gz |
patch 8.2.3093: tablabel_tooltip test fails with Athenav8.2.3093
Problem: tablabel_tooltip test fails with Athena. (Dominique Pellé)
Solution: Skip the test when using Athena. (closes #8508)
Diffstat (limited to 'src/testdir/check.vim')
-rw-r--r-- | src/testdir/check.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/testdir/check.vim b/src/testdir/check.vim index 4c5f3eef5..d6bfe004a 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) |