Compare commits

..

No commits in common. "fa5fe845cc59a7888a1c7cd64f4a3615fe4ee8cd" and "535d8553c4af85c334ef4c1ec51c69bc26256c18" have entirely different histories.

View File

@ -95,19 +95,15 @@ describe('terminal channel is closed and later released if', function()
end)
it('chansend sends lines to terminal channel in proper order', function()
clear({args = {'--cmd', 'set laststatus=2'}})
clear()
local screen = Screen.new(100, 20)
screen:attach()
local shells = is_os('win') and {'cmd.exe', 'pwsh.exe -nop', 'powershell.exe -nop'} or {'sh'}
for _, sh in ipairs(shells) do
command([[let id = termopen(']] .. sh .. [[')]])
command([[bdelete! | let id = termopen(']] .. sh .. [[')]])
command([[call chansend(id, ['echo "hello"', 'echo "world"', ''])]])
screen:expect{
any=[[echo "hello".*echo "world"]]
}
command('bdelete!')
screen:expect{
any='%[No Name%]'
}
end
end)