diff src/testdir/test_channel.vim @ 18943:d90138662f49 v8.2.0032

patch 8.2.0032: MS-Windows: test for blank job fails Commit: https://github.com/vim/vim/commit/7c2a2f869b0f5a3e36f5e7d83923a264426e434c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 22 18:28:51 2019 +0100 patch 8.2.0032: MS-Windows: test for blank job fails Problem: MS-Windows: test for blank job fails Solution: Check before escaping.
author Bram Moolenaar <Bram@vim.org>
date Sun, 22 Dec 2019 18:30:03 +0100
parents 70d6614aaf28
children f2c8bc90f3c8
line wrap: on
line diff
--- a/src/testdir/test_channel.vim
+++ b/src/testdir/test_channel.vim
@@ -1962,6 +1962,8 @@ func Test_empty_job()
   " This was crashing on MS-Windows.
   call assert_fails('let job = job_start([""])', 'E474:')
   call assert_fails('let job = job_start(["   "])', 'E474:')
+  call assert_fails('let job = job_start("")', 'E474:')
+  call assert_fails('let job = job_start("   ")', 'E474:')
 endfunc
 
 " Do this last, it stops any channel log.