summaryrefslogtreecommitdiffstats
path: root/src/testdir/check.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-10-16 21:58:27 +0100
committerBram Moolenaar <Bram@vim.org>2021-10-16 21:58:27 +0100
commit40bd5a15405206b130d487af0ca61b5d9b5859f8 (patch)
treea1209713945fafa4c3ee07d7f3074b4462f5c948 /src/testdir/check.vim
parentd4c4bfa0078a959ff90ef30288fd31d9d38f23d7 (diff)
patch 8.2.3526: tests have clumsy check for X11 based GUIv8.2.3526
Problem: Tests have clumsy check for X11 based GUI. Solution: Add CheckX11BasedGui.
Diffstat (limited to 'src/testdir/check.vim')
-rw-r--r--src/testdir/check.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/check.vim b/src/testdir/check.vim
index 6d2d564fac..55a64bd7ab 100644
--- a/src/testdir/check.vim
+++ b/src/testdir/check.vim
@@ -217,6 +217,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>)