aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/output_spec.lua
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-06-25 17:52:39 +0200
committerGitHub <noreply@github.com>2022-06-25 17:52:39 +0200
commit9f592780b5bb8c69e18784c440c711dc5a4684e2 (patch)
tree34c4abe44693550d88221cbd140828d2657dcd7a /test/functional/ui/output_spec.lua
parentb7084fef4c850d0352488b14dcff0f36a7e75e1c (diff)
parentf977f9445f7689fc32a136108ff92b3c2137968c (diff)
downloadrneovim-9f592780b5bb8c69e18784c440c711dc5a4684e2.tar.gz
rneovim-9f592780b5bb8c69e18784c440c711dc5a4684e2.tar.bz2
rneovim-9f592780b5bb8c69e18784c440c711dc5a4684e2.zip
Merge pull request #16271 from 3N4N/fix-15913
fix: make_filter_cmd for powershell as shell
Diffstat (limited to 'test/functional/ui/output_spec.lua')
-rw-r--r--test/functional/ui/output_spec.lua10
1 files changed, 3 insertions, 7 deletions
diff --git a/test/functional/ui/output_spec.lua b/test/functional/ui/output_spec.lua
index 50e5dfac84..71c6410013 100644
--- a/test/functional/ui/output_spec.lua
+++ b/test/functional/ui/output_spec.lua
@@ -9,6 +9,7 @@ local feed_command = helpers.feed_command
local iswin = helpers.iswin
local clear = helpers.clear
local command = helpers.command
+local testprg = helpers.testprg
local nvim_dir = helpers.nvim_dir
local has_powershell = helpers.has_powershell
local set_shell_powershell = helpers.set_shell_powershell
@@ -54,7 +55,7 @@ describe("shell command :!", function()
if 'openbsd' == helpers.uname() then
pending('FIXME #10804')
end
- child_session.feed_data(":!"..nvim_dir.."/shell-test REP 30001 foo\n")
+ child_session.feed_data((":!%s REP 30001 foo\n"):format(testprg('shell-test')))
-- If we observe any line starting with a dot, then throttling occurred.
-- Avoid false failure on slow systems.
@@ -207,12 +208,7 @@ describe("shell command :!", function()
it('handles multibyte sequences split over buffer boundaries', function()
command('cd '..nvim_dir)
- local cmd
- if iswin() then
- cmd = '!shell-test UTF-8 '
- else
- cmd = '!./shell-test UTF-8'
- end
+ local cmd = iswin() and '!shell-test UTF-8 ' or '!./shell-test UTF-8'
feed_command(cmd)
-- Note: only the first example of split composed char works
screen:expect([[