comparison 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
comparison
equal deleted inserted replaced
25985:4cfcfd90ccdb 25986:34b75c77a7bd
215 if execute('version') =~# '-fsanitize=[a-z,]*\<address\>' 215 if execute('version') =~# '-fsanitize=[a-z,]*\<address\>'
216 throw 'Skipped: does not work with ASAN' 216 throw 'Skipped: does not work with ASAN'
217 endif 217 endif
218 endfunc 218 endfunc
219 219
220 " Command to check for X11 based GUI
221 command CheckX11BasedGui call CheckX11BasedGui()
222 func CheckX11BasedGui()
223 if !g:x11_based_gui
224 throw 'Skipped: requires X11 based GUI'
225 endif
226 endfunc
227
220 " Command to check for satisfying any of the conditions. 228 " Command to check for satisfying any of the conditions.
221 " e.g. CheckAnyOf Feature:bsd Feature:sun Linux 229 " e.g. CheckAnyOf Feature:bsd Feature:sun Linux
222 command -nargs=+ CheckAnyOf call CheckAnyOf(<f-args>) 230 command -nargs=+ CheckAnyOf call CheckAnyOf(<f-args>)
223 func CheckAnyOf(...) 231 func CheckAnyOf(...)
224 let excp = [] 232 let excp = []