mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 19:35:37 +00:00
Merge #5339 from jamessan/stray-test-processes
test/ui: Stop the terminal job after testing
This commit is contained in:
@@ -21,6 +21,7 @@ describe("shell command :!", function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
after_each(function()
|
after_each(function()
|
||||||
|
child_session.feed_data("\3") -- Ctrl-C
|
||||||
screen:detach()
|
screen:detach()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
@@ -29,12 +30,12 @@ describe("shell command :!", function()
|
|||||||
-- to avoid triggering a UI flush.
|
-- to avoid triggering a UI flush.
|
||||||
child_session.feed_data(":!printf foo; sleep 200\n")
|
child_session.feed_data(":!printf foo; sleep 200\n")
|
||||||
screen:expect([[
|
screen:expect([[
|
||||||
{1: } |
|
|
||||||
{4:~ }|
|
|
||||||
{4:~ }|
|
{4:~ }|
|
||||||
{4:~ }|
|
{4:~ }|
|
||||||
{5:[No Name] }|
|
{5:[No Name] }|
|
||||||
|
:!printf foo; sleep 200 |
|
||||||
|
|
|
|
||||||
|
foo |
|
||||||
{3:-- TERMINAL --} |
|
{3:-- TERMINAL --} |
|
||||||
]])
|
]])
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user