diff 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
line wrap: on
line diff
--- a/src/testdir/test_terminal.vim
+++ b/src/testdir/test_terminal.vim
@@ -1218,6 +1218,9 @@ endfunc
 " argument, check that :confirm qall works.
 func Test_terminal_qall_prompt()
   CheckRunVimInTerminal
+
+  " the shell may set the window title, we don't want that here
+  call test_override('vterm_title', 1)
   let buf = RunVimInTerminal('', {})
 
   " Open a terminal window and wait for the prompt to appear
@@ -1233,6 +1236,7 @@ func Test_terminal_qall_prompt()
 
   " close the terminal window where Vim was running
   quit
+  call test_override('ALL', 0)
 endfunc
 
 " Run Vim in a terminal, then start a terminal window with a shell and check