Problem: Some tests are not valid on OpenBSD.
Solution: Add CheckNotOpenBSD, use it to skip certain tests
(Kevin Goodsell).
Test_readdirex_sort performs locale-dependent sorting. OpenBSD has
minimal locale support.
Test_stdin_no_newline hangs on OpenBSD and FreeBSD. I don't know exactly
why, but it may be due to bash not exiting at the end of the test. This
is skipped in the FreeBSD CI runs because bash is not installed.
Test_detect_fifo uses /dev/fd/ files (via process substitution) as
FIFOs. On OpenBSD the files in /dev/fd are not FIFOs.
closes: #19351
Signed-off-by: Kevin Goodsell <kevin-opensource@omegacrash.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
splits window (after 9.1.0143).
Solution: Only close other windows if the buffer will be unloaded (zeertzjq).
+Patch 9.1.2137
+Problem: Some tests are not valid on OpenBSD.
+Solution: Add CheckNotOpenBSD, use it to skip certain tests
+ (Kevin Goodsell).
+
vim:tw=78:ts=8:noet:ft=help:norl:fdm=manual:nofoldenable
" 6) Collation de_DE
" Switch locale, this may not work on the CI system, if the locale isn't
- " available
+ " available. Doesn't work on OpenBSD, which has minimal locale support.
+ CheckNotOpenBSD
try
lang collate de_DE
let files = readdirex('Xsortdir2', 1, #{sort: 'collate'})->map({-> v:val.name})
CheckScreendump
CheckUnix
CheckExecutable bash
+ " For some reason bash doesn't exit at the end of the test on FreeBSD &
+ " OpenBSD.
+ CheckNotBSD
let $PS1 = 'TEST_PROMPT> '
let buf = RunVimInTerminal('', #{rows: 20, cmd: 'bash --noprofile --norc'})
func Test_detect_fifo()
CheckUnix
+ " On OpenBSD /dev/fd/n files are character special, not FIFO
+ CheckNotOpenBSD
" Using bash/zsh's process substitution.
if executable('bash')
set shell=bash
endif
endfunc
+" Command to check for not running on OpenBSD
+command CheckNotOpenBSD call CheckNotOpenBSD()
+func CheckNotOpenBSD()
+ if has('bsd')
+ let uname = trim(system('uname'))
+ if uname == 'OpenBSD'
+ throw 'Skipped: does not work on OpenBSD'
+ endif
+ endif
+endfunc
+
" Command to check for not running on a MacOS
command CheckNotMac call CheckNotMac()
func CheckNotMac()
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2137,
/**/
2136,
/**/