patch 9.1.0695: tests: test_crash leaves Untitled file around

Commit: 
https://github.com/vim/vim/commit/cd83173defedc174d064d27a9db9fc190647b74c
Author: Christian Brabandt <c...@256bit.org>
Date:   Sat Aug 24 17:34:19 2024 +0200

    patch 9.1.0695: tests: test_crash leaves Untitled file around
    
    Problem:  tests: test_crash leaves Untitled file around
    Solution: cleanup at the end of the test_crash.vim test file
    
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/testdir/test_crash.vim b/src/testdir/test_crash.vim
index 302d3730b..f1843c426 100644
--- a/src/testdir/test_crash.vim
+++ b/src/testdir/test_crash.vim
@@ -209,7 +209,6 @@ func Test_crash1_3()
   let args = printf(cmn_args, vim, file)
   call term_sendkeys(buf, args)
   call TermWait(buf, 150)
-  call delete('Untitled')
 
   let file = 'crash/nullpointer'
   let cmn_args = "%s -u NONE -i NONE -n -e -s -S %s -c ':qa!'\<cr>"
@@ -231,4 +230,11 @@ func Test_crash2()
   exe buf .. "bw!"
 endfunc
 
+func Test_zz_cleanup()
+  " That file is created at Test_crash1_2() by dialog_changed_uaf
+  " but cleanup in that Test, doesn't remove it. Let's try again at
+  " the end of this test script
+  call delete('Untitled')
+endfunc
+
 " vim: shiftwidth=2 sts=2 expandtab
diff --git a/src/version.c b/src/version.c
index f28c66f59..8252d9f30 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    695,
 /**/
     694,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1shswr-005KWz-3h%40256bit.org.

Raspunde prin e-mail lui