test: Fix os_name() call.

This commit is contained in:
Justin M. Keyes 2016-08-08 01:16:08 -04:00
parent 68d9198501
commit 348fcee5fb

View File

@ -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.os_name() == 'windows' then
eq('rw-rw-rw-', call('getfperm', tempfile))
else
eq('rwx------', call('getfperm', tempfile))