mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
vim-patch:8.0.0944
Problem: Test_profile is a little bit flaky.
Solution: Accept a match when self and total time are the same. (James
McCoy, closes vim/vim#1972)
d21b16f3c0
This commit is contained in:
parent
20f1bf325c
commit
6c43fccb27
@ -121,7 +121,8 @@ func Test_profile_file()
|
||||
" First line of loop executes one more time than body to detect end of loop.
|
||||
call assert_match('^\s*22\s\+\d\+\.\d\+\s\+for i in range(10)$', lines[8])
|
||||
call assert_equal(' " a comment', lines[9])
|
||||
call assert_match('^\s*20\s\+\d\+\.\d\+\s\+\d\+\.\d\+\s\+call Foo()$', lines[10])
|
||||
" if self and total are equal we only get one number
|
||||
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])
|
||||
" 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])
|
||||
|
@ -160,7 +160,7 @@ static const int included_patches[] = {
|
||||
// 947,
|
||||
// 946,
|
||||
// 945,
|
||||
// 944,
|
||||
944,
|
||||
// 943,
|
||||
// 942,
|
||||
// 941,
|
||||
|
Loading…
Reference in New Issue
Block a user