]> granicus.if.org Git - vim/commitdiff
patch 8.2.2411: profile test fails on MS-Windows v8.2.2411
authorBram Moolenaar <Bram@vim.org>
Tue, 26 Jan 2021 11:06:30 +0000 (12:06 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 26 Jan 2021 11:06:30 +0000 (12:06 +0100)
Problem:    Profile test fails on MS-Windows.
Solution:   Do the profiling in a separate Vim command.

src/testdir/test_profile.vim
src/version.c

index 3abe8980521e703efd5dc5b262b374bda8a8e7cd..c8c877d5c1e4454bd8344da89cfa4b042f8a00cf 100644 (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
 
 
index 7a25bc0d6d3e1e8f86f0e012c686c51e25066dbc..086d79f15ad15cf891067dd5cbe8fd52b9c9750d 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2411,
 /**/
     2410,
 /**/