Skip to content

Commit ac665c2

Browse files
committed
patch 8.2.2112: running tests may leave some files behind
Problem: Running tests may leave some files behind. Solution: Delete the right files. Fix a few typos. (Dominique Pellé, closes #7436
1 parent 023fd5d commit ac665c2

4 files changed

Lines changed: 9 additions & 6 deletions

File tree

src/testdir/test_filetype.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ func Test_ts_file()
722722
call assert_equal('typescript', &filetype)
723723
bwipe!
724724

725-
call delete('Xfile.hook')
725+
call delete('Xfile.ts')
726726
filetype off
727727
endfunc
728728

src/testdir/test_messages.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ func Test_quit_long_message()
323323

324324
" clean up
325325
call StopVimInTerminal(buf)
326-
call delete('Xtest_diff_rnu')
326+
call delete('Xtest_quit_message')
327327
endfunc
328328

329329
" vim: shiftwidth=2 sts=2 expandtab

src/testdir/test_mksession.vim

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ func Test_mksession_terminal_no_restore_cmdarg()
381381
let term_cmd = ''
382382
for line in lines
383383
if line =~ '^terminal'
384-
call assert_report('session must not restore teminal')
384+
call assert_report('session must not restore terminal')
385385
endif
386386
endfor
387387

@@ -398,7 +398,7 @@ func Test_mksession_terminal_no_restore_funcarg()
398398
let term_cmd = ''
399399
for line in lines
400400
if line =~ '^terminal'
401-
call assert_report('session must not restore teminal')
401+
call assert_report('session must not restore terminal')
402402
endif
403403
endfor
404404

@@ -416,7 +416,7 @@ func Test_mksession_terminal_no_restore_func()
416416
let term_cmd = ''
417417
for line in lines
418418
if line =~ '^terminal'
419-
call assert_report('session must not restore teminal')
419+
call assert_report('session must not restore terminal')
420420
endif
421421
endfor
422422

@@ -434,7 +434,7 @@ func Test_mksession_terminal_no_ssop()
434434
let term_cmd = ''
435435
for line in lines
436436
if line =~ '^terminal'
437-
call assert_report('session must not restore teminal')
437+
call assert_report('session must not restore terminal')
438438
endif
439439
endfor
440440

@@ -940,6 +940,7 @@ func Test_altfile()
940940
call assert_equal('Xtwoalt', bufname('#'))
941941
only
942942
bwipe!
943+
call delete('Xtest_altfile')
943944
endfunc
944945

945946
" vim: shiftwidth=2 sts=2 expandtab

src/version.c

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

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2112,
753755
/**/
754756
2111,
755757
/**/

0 commit comments

Comments
 (0)