vim-patch:9.0.1878: tests running sh have problems

Problem:  tests running sh have problems
Solution: Check that dash is installed

closes: vim/vim#13040

1690ec64ff

Co-authored-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2023-11-17 09:31:50 +08:00
parent eae10de14e
commit b5b6e6fb49

View File

@@ -6,10 +6,8 @@ CheckScreendump
func Test_crash1() func Test_crash1()
CheckNotBSD CheckNotBSD
CheckExecutable dash
if !executable('sh')
throw 'Skipped: sh not executable!'
endif
" The following used to crash Vim " The following used to crash Vim
let opts = #{cmd: 'sh'} let opts = #{cmd: 'sh'}
let vim = GetVimProg() let vim = GetVimProg()
@@ -64,7 +62,7 @@ func Test_crash1()
let args = printf(cmn_args, vim, file) let args = printf(cmn_args, vim, file)
call term_sendkeys(buf, args .. call term_sendkeys(buf, args ..
\ ' && echo "crash 7: [OK]" >> X_crash1_result.txt' .. "\<cr>") \ ' && echo "crash 7: [OK]" >> X_crash1_result.txt' .. "\<cr>")
call TermWait(buf, 1000) call TermWait(buf, 3000)
" clean up " clean up
exe buf .. "bw!" exe buf .. "bw!"