Mercurial > vim
comparison src/testdir/test_profile.vim @ 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 | 7caffd835aa1 |
children | 03819ebd3e6d |
comparison
equal
deleted
inserted
replaced
23739:b028d0cf96da | 23740:9b55c60f9d52 |
---|---|
591 def Func() | 591 def Func() |
592 Crash() | 592 Crash() |
593 enddef | 593 enddef |
594 def Crash() | 594 def Crash() |
595 enddef | 595 enddef |
596 prof start /tmp/profile.log | 596 prof start Xprofile_crash.log |
597 prof func Func | 597 prof func Func |
598 Func() | 598 Func() |
599 END | 599 END |
600 call writefile(lines, 'Xprofile_crash.vim') | |
601 call system(GetVimCommandClean() . ' -es -c "so Xprofile_crash.vim" -c q') | |
602 call assert_equal(0, v:shell_error) | |
600 call CheckScriptSuccess(lines) | 603 call CheckScriptSuccess(lines) |
604 call delete('Xprofile_crash.vim') | |
605 call delete('Xprofile_crash.log') | |
601 endfunc | 606 endfunc |
602 | 607 |
603 | 608 |
604 " vim: shiftwidth=2 sts=2 expandtab | 609 " vim: shiftwidth=2 sts=2 expandtab |