diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-03-30 03:50:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-30 03:50:17 +0200 |
commit | 8d13955328ab0259a3b870893b4bd5b3a130564e (patch) | |
tree | cec418a7bae041575d91b8eabbc0f3b1926b8a56 /test/functional/core | |
parent | 6964b67c00f9aa029791137f44f30ed4aef20ef4 (diff) | |
parent | 1ea9ebf112d6c9d6355038afb4aaee794187cb23 (diff) | |
download | rneovim-8d13955328ab0259a3b870893b4bd5b3a130564e.tar.gz rneovim-8d13955328ab0259a3b870893b4bd5b3a130564e.tar.bz2 rneovim-8d13955328ab0259a3b870893b4bd5b3a130564e.zip |
Merge #6395 'test: Use workspace-local temp directory.'
Diffstat (limited to 'test/functional/core')
-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 |