diff options
author | George Zhao <zhaozg@gmail.com> | 2018-01-24 18:01:14 +0800 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-01-28 19:10:18 +0100 |
commit | 499c9a15531b7a0e9736a395e8d401ceab3d24d2 (patch) | |
tree | 6ccf7a97dfc1d49acb05db8be3155cd0d9f61d0e /test/functional/core/job_spec.lua | |
parent | 16a6f445702804a406244a129b0b3ec6d546b37d (diff) | |
download | rneovim-499c9a15531b7a0e9736a395e8d401ceab3d24d2.tar.gz rneovim-499c9a15531b7a0e9736a395e8d401ceab3d24d2.tar.bz2 rneovim-499c9a15531b7a0e9736a395e8d401ceab3d24d2.zip |
test/win: fix some environment assumptions #7912
fix #7909
fix #7910
Diffstat (limited to 'test/functional/core/job_spec.lua')
-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 e957650c88..a02d36c939 100644 --- a/test/functional/core/job_spec.lua +++ b/test/functional/core/job_spec.lua @@ -9,6 +9,7 @@ local command = helpers.command local wait = helpers.wait local iswin = helpers.iswin local get_pathsep = helpers.get_pathsep +local pathroot = helpers.pathroot local nvim_set = helpers.nvim_set local expect_twostreams = helpers.expect_twostreams local Screen = require('test.functional.ui.screen') @@ -63,7 +64,7 @@ describe('jobs', function() nvim('command', "let j = jobstart('pwd', g:job_opts)") end eq({'notification', 'stdout', - {0, {(iswin() and [[C:\]] or '/'), ''}}}, next_msg()) + {0, {pathroot(), ''}}}, next_msg()) eq({'notification', 'stdout', {0, {''}}}, next_msg()) eq({'notification', 'exit', {0, 0}}, next_msg()) end) |