changeset 23740:9b55c60f9d52 v8.2.2411

patch 8.2.2411: profile test fails on MS-Windows Commit: https://github.com/vim/vim/commit/98989a00145cc4f5783bcc12a2968a2f716eabb9 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 26 12:06:30 2021 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Tue, 26 Jan 2021 12:15:04 +0100
parents b028d0cf96da
children 2f521411e152
files src/testdir/test_profile.vim src/version.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_profile.vim
+++ b/src/testdir/test_profile.vim
@@ -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
 
 
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2411,
+/**/
     2410,
 /**/
     2409,