Mercurial > vim
view src/testdir/test_job_fails.vim @ 22047:ed6165395d7b v8.2.1573
patch 8.2.1573: Vim9: getreg() does not take "true" as argument
Commit: https://github.com/vim/vim/commit/67ff97ded70a87bc77f58d0bf9a261710ae88112
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Sep 2 21:45:54 2020 +0200
patch 8.2.1573: Vim9: getreg() does not take "true" as argument
Problem: Vim9: getreg() does not take "true" as argument.
Solution: Use tv_get_bool_chk(). (closes https://github.com/vim/vim/issues/6820)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 02 Sep 2020 22:00:04 +0200 |
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