diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2016-03-06 19:26:23 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2016-03-07 03:58:29 -0300 |
commit | 35d8d10a6ac924f3e64dda8c0df46d1f62da5b0a (patch) | |
tree | 0a4549eca9845bf0bf07955bbf10fe3c4b834190 /test/functional/legacy/036_regexp_character_classes_spec.lua | |
parent | bd81239f2f98e46f8565c7d80d586381881e78b4 (diff) | |
download | rneovim-35d8d10a6ac924f3e64dda8c0df46d1f62da5b0a.tar.gz rneovim-35d8d10a6ac924f3e64dda8c0df46d1f62da5b0a.tar.bz2 rneovim-35d8d10a6ac924f3e64dda8c0df46d1f62da5b0a.zip |
Remove dependency on ffi module
Diffstat (limited to 'test/functional/legacy/036_regexp_character_classes_spec.lua')
-rw-r--r-- | test/functional/legacy/036_regexp_character_classes_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/legacy/036_regexp_character_classes_spec.lua b/test/functional/legacy/036_regexp_character_classes_spec.lua index 3c264423ff..034a0d14ef 100644 --- a/test/functional/legacy/036_regexp_character_classes_spec.lua +++ b/test/functional/legacy/036_regexp_character_classes_spec.lua @@ -1,9 +1,9 @@ -- Test character classes in regexp using regexpengine 0, 1, 2. local helpers = require('test.functional.helpers') -local ffi = require('ffi') local clear, execute, expect = helpers.clear, helpers.execute, helpers.expect local source, write_file = helpers.source, helpers.write_file +local os_name = helpers.os_name local function sixlines(text) local result = '' @@ -15,7 +15,7 @@ end local function diff(text, nodedent) local tmpname = os.tmpname() - if ffi.os == 'OSX' and string.match(tmpname, '^/tmp') then + if os_name() == 'osx' and string.match(tmpname, '^/tmp') then tmpname = '/private'..tmpname end execute('w! '..tmpname) |