diff src/testdir/test_crash.vim @ 33199:3395f1cbe3ab v9.0.1878

patch 9.0.1878: tests running sh have problems Commit: https://github.com/vim/vim/commit/1690ec64ffd784cddddb937870f5891adbb21986 Author: Philip H <47042125+pheiduck@users.noreply.github.com> Date: Wed Sep 6 20:20:07 2023 +0200 patch 9.0.1878: tests running sh have problems Problem: tests running sh have problems Solution: Check that dash is installed closes: #13040 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Philip H <47042125+pheiduck@users.noreply.github.com> Co-authored-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Wed, 06 Sep 2023 20:30:03 +0200
parents 256febd1cbf0
children 3737c8d06c2f
line wrap: on
line diff
--- a/src/testdir/test_crash.vim
+++ b/src/testdir/test_crash.vim
@@ -6,10 +6,8 @@ CheckScreendump
 
 func Test_crash1()
   CheckNotBSD
+  CheckExecutable dash
 
-  if !executable('sh')
-    throw 'Skipped: sh not executable!'
-  endif
   " The following used to crash Vim
   let opts = #{cmd: 'sh'}
   let vim  = GetVimProg()
@@ -64,7 +62,7 @@ func Test_crash1()
   let args = printf(cmn_args, vim, file)
   call term_sendkeys(buf, args ..
     \ '  && echo "crash 7: [OK]" >> X_crash1_result.txt' .. "\<cr>")
-  call TermWait(buf, 1000)
+  call TermWait(buf, 3000)
 
   " clean up
   exe buf .. "bw!"