Problem: Vim9: test may fail when run with valgrind.
Solution: Wait longer for callback if needed.
enddef
def Exit_cb(...l: list<any>)
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'})
sleep 10m
endwhile
# wait for Exit_cb() to be called
- sleep 200m
+ 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:'])
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 4862,
/**/
4861,
/**/