Mercurial > vim
comparison src/testdir/test_terminal.vim @ 29142:74974ecddc8a v8.2.5091
patch 8.2.5091: terminal test fails with some shell commands
Commit: https://github.com/vim/vim/commit/e564c7009dfb065fb5261e548b15f83d32f735c9
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jun 14 15:00:28 2022 +0100
patch 8.2.5091: terminal test fails with some shell commands
Problem: Terminal test fails with some shell commands.
Solution: Disable setting the window title. (closes https://github.com/vim/vim/issues/10530)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 14 Jun 2022 16:15:03 +0200 |
parents | 99c1356f4210 |
children | 6dfdbe81899e |
comparison
equal
deleted
inserted
replaced
29141:136622f5e94e | 29142:74974ecddc8a |
---|---|
1216 | 1216 |
1217 " Run Vim in a terminal, then start a terminal in that Vim without a kill | 1217 " Run Vim in a terminal, then start a terminal in that Vim without a kill |
1218 " argument, check that :confirm qall works. | 1218 " argument, check that :confirm qall works. |
1219 func Test_terminal_qall_prompt() | 1219 func Test_terminal_qall_prompt() |
1220 CheckRunVimInTerminal | 1220 CheckRunVimInTerminal |
1221 | |
1222 " the shell may set the window title, we don't want that here | |
1223 call test_override('vterm_title', 1) | |
1221 let buf = RunVimInTerminal('', {}) | 1224 let buf = RunVimInTerminal('', {}) |
1222 | 1225 |
1223 " Open a terminal window and wait for the prompt to appear | 1226 " Open a terminal window and wait for the prompt to appear |
1224 call term_sendkeys(buf, ":term\<CR>") | 1227 call term_sendkeys(buf, ":term\<CR>") |
1225 call WaitForAssert({-> assert_match('\[running]', term_getline(buf, 10))}) | 1228 call WaitForAssert({-> assert_match('\[running]', term_getline(buf, 10))}) |
1231 call term_sendkeys(buf, "y") | 1234 call term_sendkeys(buf, "y") |
1232 call WaitForAssert({-> assert_equal('finished', term_getstatus(buf))}) | 1235 call WaitForAssert({-> assert_equal('finished', term_getstatus(buf))}) |
1233 | 1236 |
1234 " close the terminal window where Vim was running | 1237 " close the terminal window where Vim was running |
1235 quit | 1238 quit |
1239 call test_override('ALL', 0) | |
1236 endfunc | 1240 endfunc |
1237 | 1241 |
1238 " Run Vim in a terminal, then start a terminal window with a shell and check | 1242 " Run Vim in a terminal, then start a terminal window with a shell and check |
1239 " that Vim exits if it is closed. | 1243 " that Vim exits if it is closed. |
1240 func Test_terminal_exit() | 1244 func Test_terminal_exit() |