diff src/testdir/test_channel.vim @ 8170:a0ffb1f3dedc v7.4.1378

commit https://github.com/vim/vim/commit/65edff8f51e9e54f85407bdb9156ae8e3e1b76a1 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 21 16:40:11 2016 +0100 patch 7.4.1378 Problem: Can't change job settings after it started. Solution: Add job_setoptions() with the "stoponexit" flag.
author Christian Brabandt <cb@256bit.org>
date Sun, 21 Feb 2016 16:45:05 +0100
parents 454a30a7590e
children f2286ff0c102
line wrap: on
line diff
--- a/src/testdir/test_channel.vim
+++ b/src/testdir/test_channel.vim
@@ -44,7 +44,8 @@ func s:run_server(testfunc, ...)
 
   try
     if has('job')
-      let s:job = job_start(cmd)
+      let s:job = job_start(cmd, {"stoponexit": "hup"})
+      call job_setoptions(s:job, {"stoponexit": "kill"})
     elseif has('win32')
       exe 'silent !start cmd /c start "test_channel" ' . cmd
     else