]> granicus.if.org Git - vim/commitdiff
patch 8.2.2700: nested autocmd test fails sometimes v8.2.2700
authorBram Moolenaar <Bram@vim.org>
Sat, 3 Apr 2021 15:22:29 +0000 (17:22 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 3 Apr 2021 15:22:29 +0000 (17:22 +0200)
Problem:    Nested autocmd test fails sometimes.
Solution:   Wait for the job to finish.

src/testdir/test_terminal.vim
src/version.c

index e3a4b6e6a98bbaff3607d17dade9e67914ca6cb2..6ea90b2410f81e7ac19dd456f0a3db9481d8aabf 100644 (file)
@@ -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!
index 6e770b283b6140e89f4487173176fc46a855f71d..2c195b96b84d6cd778c74655360628261189ff23 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2700,
 /**/
     2699,
 /**/