aboutsummaryrefslogtreecommitdiff
path: root/test/functional/terminal/ex_terminal_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-08-16 21:35:51 +0200
committerGitHub <noreply@github.com>2017-08-16 21:35:51 +0200
commit5b32bce73c93a64970afe0e92e0a8ba2fed88619 (patch)
tree7f55a3b3dd362fbbc59ff204287a0aae99089e5e /test/functional/terminal/ex_terminal_spec.lua
parentcea1248f7d357252d53df946093cdab4b889e6e5 (diff)
parent9a6eb71ebaac745198fdc4cec68e51731103c3d9 (diff)
downloadrneovim-5b32bce73c93a64970afe0e92e0a8ba2fed88619.tar.gz
rneovim-5b32bce73c93a64970afe0e92e0a8ba2fed88619.tar.bz2
rneovim-5b32bce73c93a64970afe0e92e0a8ba2fed88619.zip
Merge #7007 'Windows :terminal'
References #6383 Closes #4748
Diffstat (limited to 'test/functional/terminal/ex_terminal_spec.lua')
-rw-r--r--test/functional/terminal/ex_terminal_spec.lua11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/functional/terminal/ex_terminal_spec.lua b/test/functional/terminal/ex_terminal_spec.lua
index be0fd9f8ff..9930efc402 100644
--- a/test/functional/terminal/ex_terminal_spec.lua
+++ b/test/functional/terminal/ex_terminal_spec.lua
@@ -3,10 +3,10 @@ local Screen = require('test.functional.ui.screen')
local clear, wait, nvim = helpers.clear, helpers.wait, helpers.nvim
local nvim_dir, source, eq = helpers.nvim_dir, helpers.source, helpers.eq
local feed_command, eval = helpers.feed_command, helpers.eval
-
-if helpers.pending_win32(pending) then return end
+local iswin = helpers.iswin
describe(':terminal', function()
+ if helpers.pending_win32(pending) then return end
local screen
before_each(function()
@@ -174,12 +174,15 @@ describe(':terminal (with fake shell)', function()
eq('term://', string.match(eval('bufname("%")'), "^term://"))
helpers.feed([[<C-\><C-N>]])
feed_command([[find */shadacat.py]])
- eq('scripts/shadacat.py', eval('bufname("%")'))
+ if iswin() then
+ eq('scripts\\shadacat.py', eval('bufname("%")'))
+ else
+ eq('scripts/shadacat.py', eval('bufname("%")'))
+ end
end)
it('works with gf', function()
terminal_with_fake_shell([[echo "scripts/shadacat.py"]])
- wait()
screen:expect([[
ready $ echo "scripts/shadacat.py" |
|