changeset 24319:cc40b0d66646 v8.2.2700

patch 8.2.2700: nested autocmd test fails sometimes Commit: https://github.com/vim/vim/commit/6437475ffb421d6ac35572aa779ff24b70c5206b Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 3 17:22:29 2021 +0200 patch 8.2.2700: nested autocmd test fails sometimes Problem: Nested autocmd test fails sometimes. Solution: Wait for the job to finish.
author Bram Moolenaar <Bram@vim.org>
date Sat, 03 Apr 2021 17:30:05 +0200
parents e43ec29bc73a
children d44753831812
files src/testdir/test_terminal.vim src/version.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_terminal.vim
+++ b/src/testdir/test_terminal.vim
@@ -2021,8 +2021,8 @@ func Test_terminal_nested_autocmd()
   let buf = term_start(cmd, #{term_finish: 'close', hidden: 1})
   call assert_equal(lastline, line('.'))
 
-  call TermWait(buf)
-  exe buf . 'bwipe'
+  let job = term_getjob(buf)
+  call WaitForAssert({-> assert_equal("dead", job_status(job))})
   call delete('Xtext')
   augroup TermTest
     au!
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2700,
+/**/
     2699,
 /**/
     2698,