mirror of
https://github.com/neovim/neovim.git
synced 2026-10-26 15:40:20 -05:00
vim-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. https://github.com/vim/vim/commit/98989a00145cc4f5783bcc12a2968a2f716eabb9 Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
1 parent
ffdee3a2e1
commit
8b79c32735
1 file changed
+7
-1
@@ -598,6 +598,7 @@ func Test_profile_typed_func()
|
||||
endfunc
|
||||
|
||||
func Test_vim9_profiling()
|
||||
throw 'Skipped: Vim9 script is N/A'
|
||||
" only tests that compiling and calling functions doesn't crash
|
||||
let lines =<< trim END
|
||||
vim9script
|
||||
@@ -606,11 +607,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
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user