0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

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.
This commit is contained in:
Bram Moolenaar
2021-01-26 12:06:30 +01:00
parent ff0e57fe77
commit 98989a0014
2 changed files with 8 additions and 1 deletions

View File

@@ -593,11 +593,16 @@ func Test_vim9_profiling()
enddef
def Crash()
enddef
prof start /tmp/profile.log
prof start Xprofile_crash.log
prof func Func
Func()
END
call writefile(lines, 'Xprofile_crash.vim')
call system(GetVimCommandClean() . ' -es -c "so Xprofile_crash.vim" -c q')
call assert_equal(0, v:shell_error)
call CheckScriptSuccess(lines)
call delete('Xprofile_crash.vim')
call delete('Xprofile_crash.log')
endfunc

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2411,
/**/
2410,
/**/