mirror of
https://github.com/neovim/neovim.git
synced 2025-09-08 12:28:18 +00:00
vim-patch:8.0.0194
Problem: Profile tests fails if total and self time are equal.
Solution: Make one time optional.
e32bbded64
This commit is contained in:
@@ -113,7 +113,8 @@ func Test_profile_file()
|
|||||||
call assert_equal(' " a comment', lines[9])
|
call assert_equal(' " a comment', lines[9])
|
||||||
call assert_match('^\s*20\s\+\d\+\.\d\+\s\+\d\+\.\d\+\s\+call Foo()$', lines[10])
|
call assert_match('^\s*20\s\+\d\+\.\d\+\s\+\d\+\.\d\+\s\+call Foo()$', lines[10])
|
||||||
call assert_match('^\s*20\s\+\d\+\.\d\+\s\+endfor$', lines[11])
|
call assert_match('^\s*20\s\+\d\+\.\d\+\s\+endfor$', lines[11])
|
||||||
call assert_match('^\s*2\s\+\d\+\.\d\+\s\+\d\+\.\d\+\s\+call Foo()$', lines[12])
|
" if self and total are equal we only get one number
|
||||||
|
call assert_match('^\s*2\s\+\(\d\+\.\d\+\s\+\)\=\d\+\.\d\+\s\+call Foo()$', lines[12])
|
||||||
call assert_equal('', lines[13])
|
call assert_equal('', lines[13])
|
||||||
|
|
||||||
call delete('Xprofile_file.vim')
|
call delete('Xprofile_file.vim')
|
||||||
|
@@ -910,7 +910,7 @@ static const int included_patches[] = {
|
|||||||
// 197,
|
// 197,
|
||||||
// 196,
|
// 196,
|
||||||
195,
|
195,
|
||||||
// 194,
|
194,
|
||||||
// 193 NA
|
// 193 NA
|
||||||
// 192 NA
|
// 192 NA
|
||||||
// 191 NA
|
// 191 NA
|
||||||
|
Reference in New Issue
Block a user