1
0
forked from aniani/vim

patch 8.2.3008: startup test may hang

Problem:    Startup test may hang.
Solution:   Add quit command in the script.
This commit is contained in:
Bram Moolenaar
2021-06-15 23:05:59 +02:00
parent 61a417b7c1
commit 55b6b60b69
2 changed files with 4 additions and 1 deletions

View File

@@ -1305,9 +1305,10 @@ func Test_echo_true_in_cmd()
let lines =<< trim END
echo v:true
call writefile(['done'], 'Xresult')
quit
END
call writefile(lines, 'Xscript')
if RunVim([], [], '--cmd "source Xscript" --c q')
if RunVim([], [], '--cmd "source Xscript"')
call assert_equal(['done'], readfile('Xresult'))
endif
call delete('Xscript')

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3008,
/**/
3007,
/**/