aboutsummaryrefslogtreecommitdiff
path: root/test/unit/os
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-01-16 16:35:33 -0500
committerJustin M. Keyes <justinkz@gmail.com>2015-01-16 16:35:33 -0500
commitbff48b23d700d6202e1c85564cd7fcb1b3ce4c34 (patch)
tree223916572a14eabc20dde3082b237231c7b99175 /test/unit/os
parent401d738597a3e25319f988af49ec1cd7a5cb0980 (diff)
parent522a15f1c08c67824d52781ebdf284168678da96 (diff)
downloadrneovim-bff48b23d700d6202e1c85564cd7fcb1b3ce4c34.tar.gz
rneovim-bff48b23d700d6202e1c85564cd7fcb1b3ce4c34.tar.bz2
rneovim-bff48b23d700d6202e1c85564cd7fcb1b3ce4c34.zip
Merge pull request #1833 from aktau/formatc-fix-gcc-on-osx
test: Correct lfs.attributes() call, and allow unit tests to run with gcc on OSX
Diffstat (limited to 'test/unit/os')
-rw-r--r--test/unit/os/fs_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/os/fs_spec.lua b/test/unit/os/fs_spec.lua
index 2d54dc6003..90f5a0b7de 100644
--- a/test/unit/os/fs_spec.lua
+++ b/test/unit/os/fs_spec.lua
@@ -33,11 +33,11 @@ local absolute_executable = nil
local executable_name = nil
local function assert_file_exists(filepath)
- eq(false, nil == (lfs.attributes(filepath, 'r')))
+ neq(nil, lfs.attributes(filepath))
end
local function assert_file_does_not_exist(filepath)
- eq(true, nil == (lfs.attributes(filepath, 'r')))
+ eq(nil, lfs.attributes(filepath))
end
describe('fs function', function()