diff src/testdir/test_channel.vim @ 15677:772e72b046a3 v8.1.0846

patch 8.1.0846: not easy to recognize the system Vim runs on commit https://github.com/vim/vim/commit/39536dd557e847e80572044c2be319db5886abe3 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 29 22:58:21 2019 +0100 patch 8.1.0846: not easy to recognize the system Vim runs on Problem: Not easy to recognize the system Vim runs on. Solution: Add more items to the features list. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/3855)
author Bram Moolenaar <Bram@vim.org>
date Tue, 29 Jan 2019 23:00:16 +0100
parents 858bf9c80c93
children 287104a1d51e
line wrap: on
line diff
--- a/src/testdir/test_channel.vim
+++ b/src/testdir/test_channel.vim
@@ -29,7 +29,7 @@ endfunc
 func s:get_resources()
   let pid = getpid()
 
-  if has('mac')
+  if executable('lsof')
     return systemlist('lsof -p ' . pid . ' | awk ''$4~/^[0-9]*[rwu]$/&&$5=="REG"{print$NF}''')
   elseif isdirectory('/proc/' . pid . '/fd/')
     return systemlist('readlink /proc/' . pid . '/fd/* | grep -v ''^/dev/''')