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:
@@ -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')
|
||||
|
||||
@@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
3008,
|
||||
/**/
|
||||
3007,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user