]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0194: tests: test_startup.vim leaves temp.txt around v9.2.0194
authorChristian Brabandt <cb@256bit.org>
Wed, 18 Mar 2026 20:42:22 +0000 (20:42 +0000)
committerChristian Brabandt <cb@256bit.org>
Wed, 18 Mar 2026 20:42:22 +0000 (20:42 +0000)
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>
src/testdir/test_startup.vim
src/version.c

index 0c2781e702420b09dfaa962a884f98eb20d0e62c..b14ea73354610502bb047dc336d37f98421c67b4 100644 (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)
 
index ed08d95c214ba1ece04d90d16771c3dcbc24af55..acccc10a5b17cb57eb77d082ca5b891628af8059 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    194,
 /**/
     193,
 /**/