comparison src/testdir/test_functions.vim @ 15742:916c13256877 v8.1.0878

patch 8.1.0878: test for has('bsd') fails on some BSD systems commit https://github.com/vim/vim/commit/a02e3f65c52a2c8c987e7dcac5df1f8db9a7b0de Author: Bram Moolenaar <Bram@vim.org> 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)
author Bram Moolenaar <Bram@vim.org>
date Thu, 07 Feb 2019 21:30:06 +0100
parents 772e72b046a3
children e16dc16dc927
comparison
equal deleted inserted replaced
15741:e9bb21037bed 15742:916c13256877
1236 1236
1237 if has('unix') && executable('uname') 1237 if has('unix') && executable('uname')
1238 let uname = system('uname') 1238 let uname = system('uname')
1239 call assert_equal(uname =~? 'BeOS', has('beos')) 1239 call assert_equal(uname =~? 'BeOS', has('beos'))
1240 call assert_equal(uname =~? 'BSD\|DragonFly', has('bsd')) 1240 call assert_equal(uname =~? 'BSD\|DragonFly', has('bsd'))
1241 " GNU userland on BSD kernels (e.g., GNU/kFreeBSD) don't have BSD defined
1242 call assert_equal(uname =~? '\%(GNU/k\w\+\)\@<!BSD\|DragonFly', has('bsd'))
1241 call assert_equal(uname =~? 'HP-UX', has('hpux')) 1243 call assert_equal(uname =~? 'HP-UX', has('hpux'))
1242 call assert_equal(uname =~? 'Linux', has('linux')) 1244 call assert_equal(uname =~? 'Linux', has('linux'))
1243 call assert_equal(uname =~? 'Darwin', has('mac')) 1245 call assert_equal(uname =~? 'Darwin', has('mac'))
1244 call assert_equal(uname =~? 'QNX', has('qnx')) 1246 call assert_equal(uname =~? 'QNX', has('qnx'))
1245 call assert_equal(uname =~? 'SunOS', has('sun')) 1247 call assert_equal(uname =~? 'SunOS', has('sun'))