diff options
Diffstat (limited to 'src/testdir/test_terminal.vim')
-rw-r--r-- | src/testdir/test_terminal.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim index b6c926f40..573db1e01 100644 --- 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 |