2016-08-05 19:31:57 +02:00
|
|
|
" 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
|
2020-03-20 18:20:51 +01:00
|
|
|
" freed. Since the process exits right away it's not a real leak.
|
2016-08-05 19:31:57 +02:00
|
|
|
|
2020-08-12 18:50:36 +02:00
|
|
|
source check.vim
|
2016-08-05 19:31:57 +02:00
|
|
|
|
|
|
|
func Test_job_start_fails()
|
2020-08-12 18:50:36 +02:00
|
|
|
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))})
|
2016-08-05 19:31:57 +02:00
|
|
|
endif
|
|
|
|
endfunc
|
2020-03-20 18:20:51 +01:00
|
|
|
|
|
|
|
" vim: shiftwidth=2 sts=2 expandtab
|