diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-01-10 01:33:05 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-01-10 01:33:05 -0500 |
commit | 9bf694ff0bd6a4251758524f762847208618c8f3 (patch) | |
tree | 3e97b13c44361ef74f02fa18ffe8c9fea2f9a690 /test/functional/helpers.lua | |
parent | 50db0312f941ba489466d7d6b21088f1870429ee (diff) | |
parent | f350655ddd3846f7c1e12a21fcb30d49f90fa6b6 (diff) | |
download | rneovim-9bf694ff0bd6a4251758524f762847208618c8f3.tar.gz rneovim-9bf694ff0bd6a4251758524f762847208618c8f3.tar.bz2 rneovim-9bf694ff0bd6a4251758524f762847208618c8f3.zip |
Merge #3857 'Vim 7.4.{944,945,946,950,953,1032,1055}'.
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r-- | test/functional/helpers.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index 50fa3fb1bd..1fba15c2c3 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -1,4 +1,5 @@ require('coxpcall') +local ffi = require('ffi') local lfs = require('lfs') local assert = require('luassert') local Loop = require('nvim.loop') @@ -246,9 +247,13 @@ end local function source(code) local tmpname = os.tmpname() + if ffi.os == 'OSX' and string.match(tmpname, '^/tmp') then + tmpname = '/private'..tmpname + end write_file(tmpname, code) nvim_command('source '..tmpname) os.remove(tmpname) + return tmpname end local function eq(expected, actual) |