Skip to content

Commit cd83173

Browse files
committed
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 <[email protected]>
1 parent a68e34c commit cd83173

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/testdir/test_crash.vim

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ func Test_crash1_3()
209209
let args = printf(cmn_args, vim, file)
210210
call term_sendkeys(buf, args)
211211
call TermWait(buf, 150)
212-
call delete('Untitled')
213212

214213
let file = 'crash/nullpointer'
215214
let cmn_args = "%s -u NONE -i NONE -n -e -s -S %s -c ':qa!'\<cr>"
@@ -231,4 +230,11 @@ func Test_crash2()
231230
exe buf .. "bw!"
232231
endfunc
233232

233+
func Test_zz_cleanup()
234+
" That file is created at Test_crash1_2() by dialog_changed_uaf
235+
" but cleanup in that Test, doesn't remove it. Let's try again at
236+
" the end of this test script
237+
call delete('Untitled')
238+
endfunc
239+
234240
" vim: shiftwidth=2 sts=2 expandtab

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ static char *(features[]) =
704704

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
695,
707709
/**/
708710
694,
709711
/**/

0 commit comments

Comments
 (0)