diff src/testdir/check.vim @ 25986:34b75c77a7bd v8.2.3526

patch 8.2.3526: tests have clumsy check for X11 based GUI Commit: https://github.com/vim/vim/commit/40bd5a15405206b130d487af0ca61b5d9b5859f8 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 16 21:58:27 2021 +0100 patch 8.2.3526: tests have clumsy check for X11 based GUI Problem: Tests have clumsy check for X11 based GUI. Solution: Add CheckX11BasedGui.
author Bram Moolenaar <Bram@vim.org>
date Sat, 16 Oct 2021 23:00:05 +0200
parents cf18d6749dbe
children d32dc906dd2c
line wrap: on
line diff
--- 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>)