From 6437475ffb421d6ac35572aa779ff24b70c5206b Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 3 Apr 2021 17:22:29 +0200 Subject: [PATCH] patch 8.2.2700: nested autocmd test fails sometimes Problem: Nested autocmd test fails sometimes. Solution: Wait for the job to finish. --- src/testdir/test_terminal.vim | 4 ++-- src/version.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) 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, /**/ -- 2.50.1