diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-07-03 23:19:43 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-07-04 09:22:50 -0400 |
commit | ce4d424bfc92d7308d1edecd723d2f20cef6c2c0 (patch) | |
tree | 84555465ff03a24de26afe62db5c8fd1a1fb34dd | |
parent | 37959e88654c6b8e49de493231f6ff780adab67c (diff) | |
download | rneovim-ce4d424bfc92d7308d1edecd723d2f20cef6c2c0.tar.gz rneovim-ce4d424bfc92d7308d1edecd723d2f20cef6c2c0.tar.bz2 rneovim-ce4d424bfc92d7308d1edecd723d2f20cef6c2c0.zip |
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 vim/vim#8508)
https://github.com/vim/vim/commit/fb773a3e0aa9466bb953c29bad0bf4ba34461a40
-rw-r--r-- | src/nvim/testdir/check.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nvim/testdir/check.vim b/src/nvim/testdir/check.vim index 7b06e53dd5..14bab33a2f 100644 --- a/src/nvim/testdir/check.vim +++ b/src/nvim/testdir/check.vim @@ -9,6 +9,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) |