aboutsummaryrefslogtreecommitdiff
path: root/test/functional/terminal/ex_terminal_spec.lua
diff options
context:
space:
mode:
authorerw7 <erw7.github@gmail.com>2017-03-28 18:07:58 +0900
committerJustin M. Keyes <justinkz@gmail.com>2017-08-16 09:13:43 +0200
commit4b1f21de75f9981007d80aca8355239e8615d6bd (patch)
treeb0322a5b61eacbd6207603b346fca2f7d957458a /test/functional/terminal/ex_terminal_spec.lua
parenta79785675564a4c1f02f9aa54249fc6000187c0d (diff)
downloadrneovim-4b1f21de75f9981007d80aca8355239e8615d6bd.tar.gz
rneovim-4b1f21de75f9981007d80aca8355239e8615d6bd.tar.bz2
rneovim-4b1f21de75f9981007d80aca8355239e8615d6bd.zip
win: support :terminal
Diffstat (limited to 'test/functional/terminal/ex_terminal_spec.lua')
-rw-r--r--test/functional/terminal/ex_terminal_spec.lua11
1 files changed, 8 insertions, 3 deletions
diff --git a/test/functional/terminal/ex_terminal_spec.lua b/test/functional/terminal/ex_terminal_spec.lua
index be0fd9f8ff..5eb6a5f18c 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,10 +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()
+ if helpers.pending_win32(pending) then return end
terminal_with_fake_shell([[echo "scripts/shadacat.py"]])
wait()
screen:expect([[