# HG changeset patch # User Bram Moolenaar # Date 1549571406 -3600 # Node ID 916c1325687709ca80356d5179f77e01e6efe59e # Parent e9bb21037bedfdfba13cd0feaba1b4a0fbdf8a8e patch 8.1.0878: test for has('bsd') fails on some BSD systems commit https://github.com/vim/vim/commit/a02e3f65c52a2c8c987e7dcac5df1f8db9a7b0de Author: Bram Moolenaar Date: Thu Feb 7 21:27:14 2019 +0100 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 https://github.com/vim/vim/issues/3909) diff --git a/src/testdir/test_functions.vim b/src/testdir/test_functions.vim --- a/src/testdir/test_functions.vim +++ b/src/testdir/test_functions.vim @@ -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\+\)\@