Mercurial > vim
diff src/testdir/test_mksession.vim @ 24335:3f96a5dc0c53 v8.2.2708
patch 8.2.2708: test sometimes fails waiting for shell in terminal
Commit: https://github.com/vim/vim/commit/3a6aadb3289be5114db6cce1c8c18b3f5f14d17c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 4 15:28:59 2021 +0200
patch 8.2.2708: test sometimes fails waiting for shell in terminal
Problem: Test sometimes fails waiting for shell in terminal.
Solution: Use WaitForAssert() so we can see the actual job status. Use
Run_shell_in_terminal().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 04 Apr 2021 15:30:03 +0200 |
parents | c2a234e8c896 |
children | a56f9c2ba51c |
line wrap: on
line diff
--- a/src/testdir/test_mksession.vim +++ b/src/testdir/test_mksession.vim @@ -392,7 +392,7 @@ endfunc func Test_mksession_terminal_no_restore_funcarg() CheckFeature terminal - call term_start(&shell, {'norestore': 1}) + let buf = Run_shell_in_terminal({'norestore': 1}) mksession! Xtest_mks.out let lines = readfile('Xtest_mks.out') let term_cmd = '' @@ -402,7 +402,7 @@ func Test_mksession_terminal_no_restore_ endif endfor - call StopShellInTerminal(bufnr('%')) + call StopShellInTerminal(buf) call delete('Xtest_mks.out') endfunc