Mercurial > vim
diff src/testdir/test_terminal.vim @ 27098:8bb07c88ac27 v8.2.4078
patch 8.2.4078: terminal test for current directory not used on FreeBSD
Commit: https://github.com/vim/vim/commit/ced2b38a560cc4f4ec983ed2cf4372ab62e1dbc1
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 13 15:25:32 2022 +0000
patch 8.2.4078: terminal test for current directory not used on FreeBSD
Problem: Terminal test for current directory not used on FreeBSD.
Solution: Make it work on FreeBSD. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/9516) Add
TermWait() inside Run_shell_in_terminal() as a generic solution.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 13 Jan 2022 16:30:04 +0100 |
parents | b3ac5a4dc158 |
children | 68c33419fdc6 |
line wrap: on
line diff
--- a/src/testdir/test_terminal.vim +++ b/src/testdir/test_terminal.vim @@ -26,7 +26,6 @@ func Test_terminal_basic() call assert_fails('set modifiable', 'E946:') call StopShellInTerminal(buf) - call TermWait(buf) call assert_equal('n', mode()) call assert_match('%aF[^\n]*finished]', execute('ls')) call assert_match('%aF[^\n]*finished]', execute('ls F')) @@ -48,7 +47,6 @@ func Test_terminal_no_name() call assert_equal("", bufname(buf)) call assert_match('\[No Name\]', execute('file')) call StopShellInTerminal(buf) - call TermWait(buf) endfunc func Test_terminal_TerminalWinOpen() @@ -71,7 +69,6 @@ endfunc func Test_terminal_make_change() let buf = Run_shell_in_terminal({}) call StopShellInTerminal(buf) - call TermWait(buf) setlocal modifiable exe "normal Axxx\<Esc>" @@ -109,7 +106,6 @@ endfunc func Test_terminal_split_quit() let buf = Run_shell_in_terminal({}) - call TermWait(buf) split quit! call TermWait(buf) @@ -363,7 +359,6 @@ func Test_terminal_scrollback() call assert_inrange(91, 100, lines) call StopShellInTerminal(buf) - call TermWait(buf) exe buf . 'bwipe' set termwinscroll& call delete('Xtext') @@ -751,7 +746,6 @@ func Test_terminal_noblock() let g:job = term_getjob(buf) call StopShellInTerminal(buf) - call TermWait(buf) unlet g:job bwipe endfunc @@ -934,7 +928,6 @@ func TerminalTmap(remap) call term_sendkeys(buf, "\r") call StopShellInTerminal(buf) - call TermWait(buf) tunmap 123 tunmap 456 @@ -952,7 +945,6 @@ func Test_terminal_wall() let buf = Run_shell_in_terminal({}) wall call StopShellInTerminal(buf) - call TermWait(buf) exe buf . 'bwipe' unlet g:job endfunc @@ -961,7 +953,6 @@ func Test_terminal_wqall() let buf = Run_shell_in_terminal({}) call assert_fails('wqall', 'E948:') call StopShellInTerminal(buf) - call TermWait(buf) exe buf . 'bwipe' unlet g:job endfunc @@ -2001,7 +1992,6 @@ func Test_terminal_ansicolors_default() let buf = Run_shell_in_terminal({}) call assert_equal(colors, term_getansicolors(buf)) call StopShellInTerminal(buf) - call TermWait(buf) call assert_equal([], term_getansicolors(buf)) exe buf . 'bwipe' @@ -2026,7 +2016,6 @@ func Test_terminal_ansicolors_global() let buf = Run_shell_in_terminal({}) call assert_equal(g:terminal_ansi_colors, term_getansicolors(buf)) call StopShellInTerminal(buf) - call TermWait(buf) exe buf . 'bwipe' unlet g:terminal_ansi_colors @@ -2060,7 +2049,6 @@ func Test_terminal_ansicolors_func() call assert_fails('call term_setansicolors(buf, {})', 'E714:') call StopShellInTerminal(buf) - call TermWait(buf) call assert_equal(0, term_setansicolors(buf, [])) exe buf . 'bwipe' endfunc