diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-26 12:06:30 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-26 12:06:30 +0100 |
commit | 98989a00145cc4f5783bcc12a2968a2f716eabb9 (patch) | |
tree | 6e172dd66c3370f21d8d2922d4c3aef494ba64bb /src/testdir | |
parent | ff0e57fe77b1a87a034191c629730b081f6fb7ad (diff) | |
download | vim-git-98989a00145cc4f5783bcc12a2968a2f716eabb9.tar.gz |
patch 8.2.2411: profile test fails on MS-Windowsv8.2.2411
Problem: Profile test fails on MS-Windows.
Solution: Do the profiling in a separate Vim command.
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_profile.vim | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/testdir/test_profile.vim b/src/testdir/test_profile.vim index 3abe89805..c8c877d5c 100644 --- 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 |