From: Bram Moolenaar Date: Sat, 3 Apr 2021 15:22:29 +0000 (+0200) Subject: patch 8.2.2700: nested autocmd test fails sometimes X-Git-Tag: v8.2.2700 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6437475ffb421d6ac35572aa779ff24b70c5206b;p=vim 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 index e3a4b6e6a..6ea90b241 100644 --- 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 index 6e770b283..2c195b96b 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2700, /**/ 2699, /**/