mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
test: is_os() #10933
- Move os_name() up to "global helpers". - Rename it to is_os(). - Make it depend on uname() instead of a running Nvim instance.
This commit is contained in:
@@ -21,7 +21,7 @@ describe('Test getting and setting file permissions', function()
|
||||
eq(9, call('len', call('getfperm', tempfile)))
|
||||
|
||||
eq(1, call('setfperm', tempfile, 'rwx------'))
|
||||
if helpers.os_name() == 'windows' then
|
||||
if helpers.is_os('win') then
|
||||
eq('rw-rw-rw-', call('getfperm', tempfile))
|
||||
else
|
||||
eq('rwx------', call('getfperm', tempfile))
|
||||
|
||||
Reference in New Issue
Block a user