diff --git a/test/old/testdir/check.vim b/test/old/testdir/check.vim index 018e81ab21..ff7fc8b1b8 100644 --- a/test/old/testdir/check.vim +++ b/test/old/testdir/check.vim @@ -108,6 +108,17 @@ func CheckNotBSD() 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() diff --git a/test/old/testdir/test_startup_utf8.vim b/test/old/testdir/test_startup_utf8.vim index 96b593f1bd..b13abdc030 100644 --- a/test/old/testdir/test_startup_utf8.vim +++ b/test/old/testdir/test_startup_utf8.vim @@ -62,6 +62,8 @@ endfunc 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