diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-03-29 20:07:39 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-03-30 02:55:00 +0200 |
commit | 1ea9ebf112d6c9d6355038afb4aaee794187cb23 (patch) | |
tree | cec418a7bae041575d91b8eabbc0f3b1926b8a56 /test/functional | |
parent | 1f478cebeb929332e90c1b50de4b8a4f311a0df2 (diff) | |
download | rneovim-1ea9ebf112d6c9d6355038afb4aaee794187cb23.tar.gz rneovim-1ea9ebf112d6c9d6355038afb4aaee794187cb23.tar.bz2 rneovim-1ea9ebf112d6c9d6355038afb4aaee794187cb23.zip |
test: Use workspace-local temp directory.
Closes #6291
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/core/job_spec.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/core/job_spec.lua b/test/functional/core/job_spec.lua index e442c2a317..9ee91f2fe9 100644 --- a/test/functional/core/job_spec.lua +++ b/test/functional/core/job_spec.lua @@ -8,6 +8,7 @@ local clear, eq, eval, exc_exec, execute, feed, insert, neq, next_msg, nvim, local command = helpers.command local wait = helpers.wait local iswin = helpers.iswin +local get_pathsep = helpers.get_pathsep local Screen = require('test.functional.ui.screen') describe('jobs', function() @@ -65,7 +66,7 @@ describe('jobs', function() end) it('changes to given `cwd` directory', function() - local dir = eval('resolve(tempname())') + local dir = eval("resolve(tempname())"):gsub("/", get_pathsep()) mkdir(dir) nvim('command', "let g:job_opts.cwd = '" .. dir .. "'") if iswin() then |