patch 8.1.0603: the :stop command is not tested
Problem: The :stop command is not tested.
Solution: Test :stop using a terminal window.
diff --git a/src/testdir/shared.vim b/src/testdir/shared.vim
index 92aacfa..4546be7 100644
--- a/src/testdir/shared.vim
+++ b/src/testdir/shared.vim
@@ -345,3 +345,13 @@
let job = term_getjob(a:buf)
call WaitFor({-> job_status(job) == "dead"})
endfunc
+
+" Gets the text of a terminal line, using term_scrape()
+func Get_terminal_text(bufnr, row)
+ let list = term_scrape(a:bufnr, a:row)
+ let text = ''
+ for item in list
+ let text .= item.chars
+ endfor
+ return text
+endfunc