diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-10-12 20:31:26 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-10-12 20:31:26 +0200 |
commit | fc8aa6d02d85b0df703e0a790137891c91503c9e (patch) | |
tree | d7a1d27bc4780e9cbf7349b8cedc7dc6b0fcc288 /src/testdir/test_vim9_fails.vim | |
parent | 93be1644db2848659b0610477968c83f53619da1 (diff) | |
download | vim-git-fc8aa6d02d85b0df703e0a790137891c91503c9e.tar.gz |
patch 8.2.1839: Vim9: memory leaks reported in assign testv8.2.1839
Problem: Vim9: memory leaks reported in assign test.
Solution: Move the failing job_start() call to separate test files, it
causes false leak reports.
Diffstat (limited to 'src/testdir/test_vim9_fails.vim')
-rw-r--r-- | src/testdir/test_vim9_fails.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_fails.vim b/src/testdir/test_vim9_fails.vim new file mode 100644 index 000000000..e09eb6543 --- /dev/null +++ b/src/testdir/test_vim9_fails.vim @@ -0,0 +1,10 @@ +" 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 |