]> granicus.if.org Git - vim/commitdiff
patch 9.0.0226: job_start() test may fail under valgrind v9.0.0226
authorBram Moolenaar <Bram@vim.org>
Thu, 18 Aug 2022 14:22:09 +0000 (15:22 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 18 Aug 2022 14:22:09 +0000 (15:22 +0100)
Problem:    job_start() test may fail under valgrind.
Solution:   Wait until the job is running.

src/testdir/test_vim9_builtin.vim
src/version.c

index 55ede984d949a9e026f2ce29eb504c59b406bcac..7aa81bc2254532c94523554ccabe0ac79466229c 100644 (file)
@@ -528,6 +528,7 @@ def Test_ch_getbufnr()
     v9.CheckDefAndScriptFailure(['ch_getbufnr(test_null_channel(), 1)'], ['E1013: Argument 2: type mismatch, expected string but got number', 'E1174: String required for argument 2'])
     # test empty string argument for ch_getbufnr()
     var job: job = job_start(&shell)
+    g:WaitForAssert(() => assert_equal('run', job_status(job)))
     job->ch_getbufnr('')->assert_equal(-1)
     job_stop(job)
   endif
index b2fc962bed8cece76adcdd8c2123faa6251ea504..bbe7a2e8c5498140b162a98c2677e4d23709bada 100644 (file)
@@ -731,6 +731,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    226,
 /**/
     225,
 /**/