view src/testdir/test_vim9_fails.vim @ 25615:b0f82974ddf4 v8.2.3344

patch 8.2.3344: vimscript test fails Commit: https://github.com/vim/vim/commit/d2e9ccee90d2b39f4c9fd6cec271ef3fafd76f09 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 14 15:16:00 2021 +0200 patch 8.2.3344: vimscript test fails Problem: Vimscript test fails. Solution: Have test verify first error instead of second
author Bram Moolenaar <Bram@vim.org>
date Sat, 14 Aug 2021 15:30:03 +0200
parents a3df1fb28d44
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