patch 9.2.0194: tests: test_startup.vim leaves temp.txt around

Problem:  tests: test_startup.vim leaves temp.txt around
Solution: Disable termresize and termsync explicitly to stop outputting
          DEC mode chars, delete all chars before the rm command

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt
2026-03-18 20:42:22 +00:00
parent a74e5fc5b9
commit 32e453d339
2 changed files with 5 additions and 2 deletions
+3 -2
View File
@@ -844,7 +844,8 @@ func Test_stdin_no_newline()
call term_sendkeys(buf, "echo hello > temp.txt\<CR>")
call TermWait(buf, 200)
call term_sendkeys(buf, "bash -c '../vim --not-a-term -u NONE -c \":q!\" -' < temp.txt\<CR>")
call term_sendkeys(buf, "bash -c '../vim --cmd \"set trz=sigwinch notsy\"'
\ ' --not-a-term -u NONE -c \":q!\" -' < temp.txt\<CR>")
call TermWait(buf, 200)
" Capture terminal output
@@ -882,7 +883,7 @@ func Test_stdin_no_newline()
endif
" Clean up temp file and exit shell
call term_sendkeys(buf, "rm -f temp.txt\<CR>")
call term_sendkeys(buf, "\<C-U>rm -f temp.txt\<CR>")
call term_sendkeys(buf, "exit\<CR>")
call TermWait(buf, 200)
+2
View File
@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
194,
/**/
193,
/**/