Skip to content

Commit 98989a0

Browse files
committed
patch 8.2.2411: profile test fails on MS-Windows
Problem: Profile test fails on MS-Windows. Solution: Do the profiling in a separate Vim command.
1 parent ff0e57f commit 98989a0

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/testdir/test_profile.vim

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,11 +593,16 @@ func Test_vim9_profiling()
593593
enddef
594594
def Crash()
595595
enddef
596-
prof start /tmp/profile.log
596+
prof start Xprofile_crash.log
597597
prof func Func
598598
Func()
599599
END
600+
call writefile(lines, 'Xprofile_crash.vim')
601+
call system(GetVimCommandClean() . ' -es -c "so Xprofile_crash.vim" -c q')
602+
call assert_equal(0, v:shell_error)
600603
call CheckScriptSuccess(lines)
604+
call delete('Xprofile_crash.vim')
605+
call delete('Xprofile_crash.log')
601606
endfunc
602607

603608

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+
2411,
753755
/**/
754756
2410,
755757
/**/

0 commit comments

Comments
 (0)