# HG changeset patch # User Bram Moolenaar # Date 1617463805 -7200 # Node ID cc40b0d66646d6b5e2405cf403abf2891f2c0dc9 # Parent e43ec29bc73afb687e12d2e1a44d844c99b42b2d patch 8.2.2700: nested autocmd test fails sometimes Commit: https://github.com/vim/vim/commit/6437475ffb421d6ac35572aa779ff24b70c5206b Author: Bram Moolenaar 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. diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim --- 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! diff --git a/src/version.c b/src/version.c --- 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,