Patch 8.0.1117
Problem: Test_terminal_no_cmd hangs on MS-Windows with GUI. (Christian
Brabandt)
Solution: Run the command with "start" and wait for the text to appear.
(micbou, closes #2096)
Files: src/testdir/test_terminal.vim
*** ../vim-8.0.1116/src/testdir/test_terminal.vim 2017-09-16
17:35:09.501910210 +0200
--- src/testdir/test_terminal.vim 2017-09-16 17:38:39.756686563 +0200
***************
*** 547,563 ****
let pty = job_info(term_getjob(buf))['tty_out']
call assert_notequal('', pty)
if has('win32')
! silent exe '!cmd /c "echo look here > ' . pty . '"'
else
call system('echo "look here" > ' . pty)
endif
! call term_wait(buf)
! let result = term_getline(buf, 1)
! if has('win32')
! let result = substitute(result, '\s\+$', '', '')
! endif
! call assert_equal('look here', result)
bwipe!
endfunc
--- 547,560 ----
let pty = job_info(term_getjob(buf))['tty_out']
call assert_notequal('', pty)
if has('win32')
! silent exe '!start cmd /c "echo look here > ' . pty . '"'
else
call system('echo "look here" > ' . pty)
endif
! let g:buf = buf
! call WaitFor('term_getline(g:buf, 1) =~ "look here"')
! call assert_match('look here', term_getline(buf, 1))
bwipe!
endfunc
*** ../vim-8.0.1116/src/version.c 2017-09-16 17:35:09.505910186 +0200
--- src/version.c 2017-09-16 17:40:55.467878235 +0200
***************
*** 771,772 ****
--- 771,774 ----
{ /* Add new patch number below this line */
+ /**/
+ 1117,
/**/
--
hundred-and-one symptoms of being an internet addict:
134. You consider bandwidth to be more important than carats.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.