summaryrefslogtreecommitdiff
path: root/src/testdir
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-10-05 19:19:35 +0100
committerBram Moolenaar <Bram@vim.org>2021-10-05 19:19:35 +0100
commit7c25a7c0a129300d0632e5b99ccefdca9bf3ffa2 (patch)
tree075354dd0bac168c233913853f1ba866e6d47341 /src/testdir
parentf67d3fb7363ebc9454f9bb582de3978609a4fd6b (diff)
downloadvim-git-7c25a7c0a129300d0632e5b99ccefdca9bf3ffa2.tar.gz
patch 8.2.3479: crash when calling job_start with an invalid argumentv8.2.3479
Problem: Crash when calling job_start with an invalid argument. (Virginia Senioria) Solution: Clear the first item in argv. (closes #8957)
Diffstat (limited to 'src/testdir')
-rw-r--r--src/testdir/test_channel.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim
index fa510c7bb..fbe6a8428 100644
--- a/src/testdir/test_channel.vim
+++ b/src/testdir/test_channel.vim
@@ -2362,5 +2362,9 @@ func Test_parse_messages_in_autocmd()
augroup END
endfunc
+func Test_job_start_with_invalid_argument()
+ call assert_fails('call job_start([0zff])', 'E976:')
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab