From: Vladimír Marek Date: Mon, 22 Jun 2026 18:04:06 +0000 (+0000) Subject: patch 9.2.0701: tests: test_terminal.vim does not wait for job to finish X-Git-Tag: v9.2.0701^0 X-Git-Url: http://git.ipfire.org/index.cgi?a=commitdiff_plain;p=thirdparty%2Fvim.git patch 9.2.0701: tests: test_terminal.vim does not wait for job to finish Problem: tests: Test_terminal_eof_arg() and Test_terminal_duplicate_eof_arg() do not wait until the python job finishes Solution: Wait for the job to be dead before checking its exit value (Vladimír Marek). closes: #20571 Signed-off-by: Vladimír Marek Signed-off-by: Christian Brabandt --- diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim index fced4d158b..98e82fcb4c 100644 --- a/src/testdir/test_terminal.vim +++ b/src/testdir/test_terminal.vim @@ -942,7 +942,9 @@ func Test_terminal_eof_arg() call WaitFor({-> getline('$') =~ 'hello'}) call assert_equal('hello', getline('$')) endif - let exitval = bufnr()->term_getjob()->job_info().exitval + let job = bufnr()->term_getjob() + call WaitForAssert({-> assert_equal('dead', job_status(job))}) + let exitval = job->job_info().exitval if !has('win32') call assert_equal(123, exitval) else @@ -984,7 +986,9 @@ func Test_terminal_duplicate_eof_arg() call WaitFor({-> getline('$') =~ 'hello'}) call assert_equal('hello', getline('$')) endif - let exitval = bufnr()->term_getjob()->job_info().exitval + let job = bufnr()->term_getjob() + call WaitForAssert({-> assert_equal('dead', job_status(job))}) + let exitval = job->job_info().exitval if !has('win32') call assert_equal(123, exitval) else diff --git a/src/version.c b/src/version.c index ddd8a02ca6..db18e0cc92 100644 --- a/src/version.c +++ b/src/version.c @@ -759,6 +759,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 701, /**/ 700, /**/