Mercurial > vim
view src/testdir/test_vim9_fails.vim @ 22582:a3df1fb28d44 v8.2.1839
patch 8.2.1839: Vim9: memory leaks reported in assign test
Commit: https://github.com/vim/vim/commit/fc8aa6d02d85b0df703e0a790137891c91503c9e
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Oct 12 20:31:26 2020 +0200
patch 8.2.1839: Vim9: memory leaks reported in assign test
Problem: Vim9: memory leaks reported in assign test.
Solution: Move the failing job_start() call to separate test files, it
causes false leak reports.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 12 Oct 2020 20:45:05 +0200 |
parents | |
children | 744fdb15347d |
line wrap: on
line source
" Test for Vim9 script with failures, causing memory leaks to be reported. " The leaks happen after a fork() and can be ignored. def Test_assignment() if has('channel') var chan1: channel var job1: job var job2: job = job_start('willfail') endif enddef