vim-patch:7.4.1521

Problem:    File permission test fails on MS-Windows.
Solution:   Expect a different permission.

8322e1f06e
This commit is contained in:
Jurica Bradaric
2016-05-19 22:40:21 +02:00
parent 093f8d5376
commit 07382048b0
2 changed files with 6 additions and 2 deletions

View File

@@ -163,7 +163,7 @@ static int included_patches[] = {
// 1524 NA // 1524 NA
// 1523 NA // 1523 NA
// 1522 NA // 1522 NA
// 1521, 1521,
// 1520 NA // 1520 NA
// 1519 NA // 1519 NA
// 1518 NA // 1518 NA

View File

@@ -21,7 +21,11 @@ describe('Test getting and setting file permissions', function()
eq(9, call('len', call('getfperm', tempfile))) eq(9, call('len', call('getfperm', tempfile)))
eq(1, call('setfperm', tempfile, 'rwx------')) 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(1, call('setfperm', tempfile, 'r--r--r--'))
eq('r--r--r--', call('getfperm', tempfile)) eq('r--r--r--', call('getfperm', tempfile))