Mercurial > vim
comparison src/testdir/check.vim @ 24140:af489e854955 v8.2.2611
patch 8.2.2611: conditions for startup tests are not exactly right
Commit: https://github.com/vim/vim/commit/f8c52e8d08de3fdf48db877d7d53d2d68c6ceb7b
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Mar 17 12:27:23 2021 +0100
patch 8.2.2611: conditions for startup tests are not exactly right
Problem: Conditions for startup tests are not exactly right.
Solution: Check for type of GUI instead of MS-Windows. (Ozaki Kiichi,
closes #7976)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 17 Mar 2021 12:30:03 +0100 |
parents | 12a773f4f62f |
children | 09598e5ced97 |
comparison
equal
deleted
inserted
replaced
24139:f65896f473ed | 24140:af489e854955 |
---|---|
197 if execute('version') =~# '-fsanitize=[a-z,]*\<address\>' | 197 if execute('version') =~# '-fsanitize=[a-z,]*\<address\>' |
198 throw 'Skipped: does not work with ASAN' | 198 throw 'Skipped: does not work with ASAN' |
199 endif | 199 endif |
200 endfunc | 200 endfunc |
201 | 201 |
202 " Command to check for satisfying any of the conditions. | |
203 " e.g. CheckAnyOf Feature:bsd Feature:sun Linux | |
204 command -nargs=+ CheckAnyOf call CheckAnyOf(<f-args>) | |
205 func CheckAnyOf(...) | |
206 let excp = [] | |
207 for arg in a:000 | |
208 try | |
209 exe 'Check' .. substitute(arg, ':', ' ', '') | |
210 return | |
211 catch /^Skipped:/ | |
212 let excp += [substitute(v:exception, '^Skipped:\s*', '', '')] | |
213 endtry | |
214 endfor | |
215 throw 'Skipped: ' .. join(excp, '; ') | |
216 endfunc | |
217 | |
218 " Command to check for satisfying all of the conditions. | |
219 " e.g. CheckAllOf Unix Gui Option:ballooneval | |
220 command -nargs=+ CheckAllOf call CheckAllOf(<f-args>) | |
221 func CheckAllOf(...) | |
222 for arg in a:000 | |
223 exe 'Check' .. substitute(arg, ':', ' ', '') | |
224 endfor | |
225 endfunc | |
226 | |
202 " vim: shiftwidth=2 sts=2 expandtab | 227 " vim: shiftwidth=2 sts=2 expandtab |