Mercurial > vim
view src/testdir/test_job_fails.vim @ 10302:210af8588e8a v8.0.0047
commit https://github.com/vim/vim/commit/50e5376926dc2ec4a26a7a16f8f0f3213c4afdf0
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Oct 27 14:49:15 2016 +0200
patch 8.0.0047
Problem: Crash when using the preview window from an unnamed buffer.
(lifepillar)
Solution: Do not clear the wrong buffer. (closes https://github.com/vim/vim/issues/1200)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 27 Oct 2016 15:00:04 +0200 |
parents | e0b783389bea |
children | c1347c968d31 |
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 exists right away it's not a real leak. source shared.vim func Test_job_start_fails() if has('job') let g:job = job_start('axdfxsdf') if has('unix') call WaitFor('job_status(g:job) == "dead"') call assert_equal('dead', job_status(g:job)) else call WaitFor('job_status(g:job) == "fail"') call assert_equal('fail', job_status(g:job)) endif unlet g:job endif endfunc