aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2016-09-14 21:36:17 -0400
committerJames McCoy <jamessan@jamessan.com>2016-09-14 21:36:17 -0400
commitfee961c8ddda9de00db19895e189a174896d6534 (patch)
tree52a9802c98326bf578ec22aaa56dc166c8f25790
parent5f42184873828f9a19ea5104b9b696c09849cab4 (diff)
parentc28fb221ba9f4403c3d264cc50c08160141aaacb (diff)
downloadrneovim-fee961c8ddda9de00db19895e189a174896d6534.tar.gz
rneovim-fee961c8ddda9de00db19895e189a174896d6534.tar.bz2
rneovim-fee961c8ddda9de00db19895e189a174896d6534.zip
Merge #5339 from jamessan/stray-test-processes
test/ui: Stop the terminal job after testing
-rw-r--r--test/functional/ui/output_spec.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/functional/ui/output_spec.lua b/test/functional/ui/output_spec.lua
index 6d24a3c9ff..c58bbe9147 100644
--- a/test/functional/ui/output_spec.lua
+++ b/test/functional/ui/output_spec.lua
@@ -21,6 +21,7 @@ describe("shell command :!", function()
end)
after_each(function()
+ child_session.feed_data("\3") -- Ctrl-C
screen:detach()
end)
@@ -29,12 +30,12 @@ describe("shell command :!", function()
-- to avoid triggering a UI flush.
child_session.feed_data(":!printf foo; sleep 200\n")
screen:expect([[
- {1: } |
- {4:~ }|
{4:~ }|
{4:~ }|
{5:[No Name] }|
+ :!printf foo; sleep 200 |
|
+ foo |
{3:-- TERMINAL --} |
]])
end)