aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-12-05 09:51:39 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-12-05 09:55:18 +0800
commitba9fcc22ef02c70ffea367bc9fbf22c0dca7c103 (patch)
tree74728eb54b97002c074d93efad40796a415eac81 /src
parente043dbf0aaaed75c00196fc6ccd094bb3b61da65 (diff)
downloadrneovim-ba9fcc22ef02c70ffea367bc9fbf22c0dca7c103.tar.gz
rneovim-ba9fcc22ef02c70ffea367bc9fbf22c0dca7c103.tar.bz2
rneovim-ba9fcc22ef02c70ffea367bc9fbf22c0dca7c103.zip
vim-patch:8.2.3526: tests have clumsy check for X11 based GUI
Problem: Tests have clumsy check for X11 based GUI. Solution: Add CheckX11BasedGui. https://github.com/vim/vim/commit/40bd5a15405206b130d487af0ca61b5d9b5859f8 Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src')
-rw-r--r--src/nvim/testdir/check.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/check.vim b/src/nvim/testdir/check.vim
index a7ecf455bc..d200633115 100644
--- a/src/nvim/testdir/check.vim
+++ b/src/nvim/testdir/check.vim
@@ -171,6 +171,14 @@ func CheckNotAsan()
endif
endfunc
+" Command to check for X11 based GUI
+command CheckX11BasedGui call CheckX11BasedGui()
+func CheckX11BasedGui()
+ if !g:x11_based_gui
+ throw 'Skipped: requires X11 based GUI'
+ endif
+endfunc
+
" Command to check for satisfying any of the conditions.
" e.g. CheckAnyOf Feature:bsd Feature:sun Linux
command -nargs=+ CheckAnyOf call CheckAnyOf(<f-args>)