view src/testdir/test_job_fails.vim @ 30994:dfc507ccfaa5 v9.0.0832

patch 9.0.0832: deprecation warning causes build failure Commit: https://github.com/vim/vim/commit/5a5f17f9b3fa14c36a7d6c96ac55acaddb6247e1 Author: Philip H <47042125+pheiduck@users.noreply.github.com> Date: Sat Nov 5 14:05:31 2022 +0000 patch 9.0.0832: deprecation warning causes build failure Problem: Deprecation warning causes build failure. Solution: Suppress deprecation warning. (closes https://github.com/vim/vim/issues/11503)
author Bram Moolenaar <Bram@vim.org>
date Sat, 05 Nov 2022 15:15:05 +0100
parents 08940efa6b4e
children
line wrap: on
line source

" This test is in a separate file, because it usually causes reports for memory
" leaks under valgrind.  That is because when fork/exec fails memory is not
" freed.  Since the process exits right away it's not a real leak.

source check.vim

func Test_job_start_fails()
  CheckFeature job
  let job = job_start('axdfxsdf')
  if has('unix')
    call WaitForAssert({-> assert_equal("dead", job_status(job))})
  else
    call WaitForAssert({-> assert_equal("fail", job_status(job))})
  endif
endfunc

" vim: shiftwidth=2 sts=2 expandtab