To: vim_dev@googlegroups.com Subject: Patch 8.2.4862 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.4862 Problem: Vim9: test may fail when run with valgrind. Solution: Wait longer for callback if needed. Files: src/testdir/test_vim9_script.vim *** ../vim-8.2.4861/src/testdir/test_vim9_script.vim 2022-04-29 21:14:58.341192079 +0100 --- src/testdir/test_vim9_script.vim 2022-05-04 16:16:14.366878460 +0100 *************** *** 3707,3712 **** --- 3707,3713 ---- enddef def Exit_cb(...l: list) sleep 1m + g:did_call_exit_cb = true source += l enddef var myjob = job_start('echo burp', {out_cb: Out_cb, exit_cb: Exit_cb, mode: 'raw'}) *************** *** 3714,3720 **** sleep 10m endwhile # wait for Exit_cb() to be called ! sleep 200m END writefile(lines, 'Xdef') assert_fails('so Xdef', ['E684:', 'E1012:']) --- 3715,3727 ---- sleep 10m endwhile # wait for Exit_cb() to be called ! for x in range(100) ! if exists('g:did_call_exit_cb') ! unlet g:did_call_exit_cb ! break ! endif ! sleep 10m ! endfor END writefile(lines, 'Xdef') assert_fails('so Xdef', ['E684:', 'E1012:']) *** ../vim-8.2.4861/src/version.c 2022-05-04 15:40:16.036317665 +0100 --- src/version.c 2022-05-04 16:00:45.667434529 +0100 *************** *** 748,749 **** --- 748,751 ---- { /* Add new patch number below this line */ + /**/ + 4862, /**/ -- From "know your smileys": [:-) Frankenstein's monster /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///