To: vim_dev@googlegroups.com Subject: Patch 8.1.0878 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.1.0878 Problem: Test for has('bsd') fails on some BSD systems. Solution: Adjust the uname match. (James McCoy, closes #3909) Files: src/testdir/test_functions.vim *** ../vim-8.1.0877/src/testdir/test_functions.vim 2019-01-29 22:58:02.401136295 +0100 --- src/testdir/test_functions.vim 2019-02-07 21:23:46.315413021 +0100 *************** *** 1238,1243 **** --- 1238,1245 ---- 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\+\)\@