diff src/testdir/test_terminal.vim @ 12309:e1f44e4afe67 v8.0.1034

patch 8.0.1034: sending buffer lines to terminal doesn't work on MS-Windows commit https://github.com/vim/vim/commit/3346cc4ffb459ecddb97a8c19bcc5834afa4dead Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 2 14:54:21 2017 +0200 patch 8.0.1034: sending buffer lines to terminal doesn't work on MS-Windows Problem: Sending buffer lines to terminal doesn't work on MS-Windows. Solution: Send CTRL-D to mark the end of the text. (Yasuhiro Matsumoto, closes #2043) Add the "eof_chars" option.
author Christian Brabandt <cb@256bit.org>
date Sat, 02 Sep 2017 15:00:04 +0200
parents e4aa68825575
children 44f3c9b7eec4
line wrap: on
line diff
--- a/src/testdir/test_terminal.vim
+++ b/src/testdir/test_terminal.vim
@@ -489,22 +489,22 @@ func Test_terminal_noblock()
 endfunc
 
 func Test_terminal_write_stdin()
-  " Todo: make this work on all systems.
-  if !has('unix')
+  if !executable('wc')
+    call ch_log('Test_terminal_write_stdin() is skipped because system doesn''t have wc command')
     return
   endif
   new
   call setline(1, ['one', 'two', 'three'])
   %term wc
   call WaitFor('getline(1) != ""')
-  let nrs = split(getline(1))
+  let nrs = split(getline('$'))
   call assert_equal(['3', '3', '14'], nrs)
   bwipe
 
   call setline(1, ['one', 'two', 'three', 'four'])
   2,3term wc
   call WaitFor('getline(1) != ""')
-  let nrs = split(getline(1))
+  let nrs = split(getline('$'))
   call assert_equal(['2', '2', '10'], nrs)
   bwipe