mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 8.1.0878: test for has('bsd') fails on some BSD systems
Problem: Test for has('bsd') fails on some BSD systems. Solution: Adjust the uname match. (James McCoy, closes #3909)
This commit is contained in:
@@ -1238,6 +1238,8 @@ func Test_platform_name()
|
||||
let uname = system('uname')
|
||||
call assert_equal(uname =~? 'BeOS', has('beos'))
|
||||
call assert_equal(uname =~? 'BSD\|DragonFly', has('bsd'))
|
||||
" GNU userland on BSD kernels (e.g., GNU/kFreeBSD) don't have BSD defined
|
||||
call assert_equal(uname =~? '\%(GNU/k\w\+\)\@<!BSD\|DragonFly', has('bsd'))
|
||||
call assert_equal(uname =~? 'HP-UX', has('hpux'))
|
||||
call assert_equal(uname =~? 'Linux', has('linux'))
|
||||
call assert_equal(uname =~? 'Darwin', has('mac'))
|
||||
|
@@ -783,6 +783,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
878,
|
||||
/**/
|
||||
877,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user