diff options
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)) |