diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-02-07 06:24:17 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2025-02-07 06:30:11 +0800 |
commit | 7c43f1128d7deb9ecbe5bf747b441c7afcb736ab (patch) | |
tree | bad054a186fff635c5f99e4a988b0aa3d1e3a610 /test | |
parent | d8e191a6ab93aeebdeabcdf3711b2e635cbed7d2 (diff) | |
download | rneovim-7c43f1128d7deb9ecbe5bf747b441c7afcb736ab.tar.gz rneovim-7c43f1128d7deb9ecbe5bf747b441c7afcb736ab.tar.bz2 rneovim-7c43f1128d7deb9ecbe5bf747b441c7afcb736ab.zip |
vim-patch:9.1.1081: has('bsd') is true for GNU/Hurd
Problem: has('bsd') is true for GNU/Hurd
Solution: exclude GNU/Hurd from BSD feature flag
(Zhaoming Luo)
GNU/Hurd, like Mac OS X, is a BSD-based system. It should exclude
has('bsd') feature just like what Mac OS X does. The __GNU__ pre-defined
macro indicates it's compiled for GNU/Hurd.
closes: vim/vim#16580
https://github.com/vim/vim/commit/a41dfcd55b1744b44a47d2fc3feb5d5f6207a556
Co-authored-by: Zhaoming Luo <zhmingluo@163.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_functions.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/old/testdir/test_functions.vim b/test/old/testdir/test_functions.vim index 6a5d127fd7..6b216947a7 100644 --- a/test/old/testdir/test_functions.vim +++ b/test/old/testdir/test_functions.vim @@ -2717,6 +2717,7 @@ func Test_platform_name() " Is Unix? call assert_equal(has('bsd'), has('bsd') && has('unix')) call assert_equal(has('hpux'), has('hpux') && has('unix')) + call assert_equal(has('hurd'), has('hurd') && has('unix')) call assert_equal(has('linux'), has('linux') && has('unix')) call assert_equal(has('mac'), has('mac') && has('unix')) call assert_equal(has('qnx'), has('qnx') && has('unix')) @@ -2734,6 +2735,7 @@ func Test_platform_name() call assert_equal(uname =~? 'QNX', has('qnx')) call assert_equal(uname =~? 'SunOS', has('sun')) call assert_equal(uname =~? 'CYGWIN\|MSYS', has('win32unix')) + call assert_equal(uname =~? 'GNU', has('hurd')) endif endfunc |