Mercurial > vim
view src/testdir/test_job_fails.vim @ 20550:09143ab0fbbd v8.2.0829
patch 8.2.0829: filter() may give misleading error message
Commit: https://github.com/vim/vim/commit/fcb0b61d15f66f0e9116a6bc56d9d8105bb913cf
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 26 20:22:01 2020 +0200
patch 8.2.0829: filter() may give misleading error message
Problem: filter() may give misleading error message.
Solution: Also mention Blob as an allowed argument.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 26 May 2020 20:30:06 +0200 |
parents | b3e93a05c3ca |
children | 08940efa6b4e |
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 shared.vim func Test_job_start_fails() if has('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 endif endfunc " vim: shiftwidth=2 sts=2 expandtab