diff options
author | Jurica Bradaric <jbradaric@gmail.com> | 2016-05-19 22:40:21 +0200 |
---|---|---|
committer | Jurica Bradaric <jbradaric@gmail.com> | 2016-05-19 22:46:50 +0200 |
commit | 07382048b0b9a767a041587ed23d822da21aaa26 (patch) | |
tree | 155ea82702504c96d4e09da03e0af5045daf55c7 /test/functional/legacy/file_perm_spec.lua | |
parent | 093f8d537646e1e13ee45ab8a534b4995ff6d003 (diff) | |
download | rneovim-07382048b0b9a767a041587ed23d822da21aaa26.tar.gz rneovim-07382048b0b9a767a041587ed23d822da21aaa26.tar.bz2 rneovim-07382048b0b9a767a041587ed23d822da21aaa26.zip |
vim-patch:7.4.1521
Problem: File permission test fails on MS-Windows.
Solution: Expect a different permission.
https://github.com/vim/vim/commit/8322e1f06e8fa39a6bb790a7d8d7db5d7aff3366
Diffstat (limited to 'test/functional/legacy/file_perm_spec.lua')
-rw-r--r-- | test/functional/legacy/file_perm_spec.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/functional/legacy/file_perm_spec.lua b/test/functional/legacy/file_perm_spec.lua index 1356625890..0965ebe0bc 100644 --- a/test/functional/legacy/file_perm_spec.lua +++ b/test/functional/legacy/file_perm_spec.lua @@ -21,7 +21,11 @@ describe('Test getting and setting file permissions', function() eq(9, call('len', call('getfperm', tempfile))) eq(1, call('setfperm', tempfile, 'rwx------')) - eq('rwx------', call('getfperm', tempfile)) + if helpers.os_name == 'windows' then + eq('rwx------', call('getfperm', tempfile)) + else + eq('rwx------', call('getfperm', tempfile)) + end eq(1, call('setfperm', tempfile, 'r--r--r--')) eq('r--r--r--', call('getfperm', tempfile)) |