summaryrefslogtreecommitdiff
path: root/src/testdir
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-05-12 21:12:12 +0200
committerBram Moolenaar <Bram@vim.org>2018-05-12 21:12:12 +0200
commit54c6bafa1609f2d870874d0047b394670602350e (patch)
tree9e632505afb4b818496e4af6b72ab63665e9b0ae /src/testdir
parentee62f9fa748ea528eb2a06b3e22ef9a5aecb7cca (diff)
downloadvim-54c6bafa1609f2d870874d0047b394670602350e.zip
patch 8.0.1823: test for terminal stdout redirection is flaky
Problem: Test for terminal stdout redirection is flaky. Solution: Wait for the job to finish.
Diffstat (limited to 'src/testdir')
-rw-r--r--src/testdir/test_terminal.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim
index 14466900a..e9b69533d 100644
--- a/src/testdir/test_terminal.vim
+++ b/src/testdir/test_terminal.vim
@@ -1502,6 +1502,7 @@ func Test_terminal_out_err()
call assert_equal("this is standard out", readfile(outfile)[0])
call assert_equal('this is standard error', term_getline(buf, 1))
+ call WaitForAssert({-> assert_equal('dead', job_status(term_getjob(buf)))})
exe buf . 'bwipe'
call delete('Xechoerrout.sh')
call delete(outfile)