Mercurial > vim
changeset 24942:6dc1be6040d1 v8.2.3008
patch 8.2.3008: startup test may hang
Commit: https://github.com/vim/vim/commit/55b6b60b691eca7058535006113a1adffda4cabf
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jun 15 23:05:59 2021 +0200
patch 8.2.3008: startup test may hang
Problem: Startup test may hang.
Solution: Add quit command in the script.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 15 Jun 2021 23:15:03 +0200 |
parents | 582dbe59bccc |
children | 18fa9cff7005 |
files | src/testdir/test_startup.vim src/version.c |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_startup.vim +++ b/src/testdir/test_startup.vim @@ -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')