0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

patch 8.0.0194: profile tests fails if total and self time are equal

Problem:    Profile tests fails if total and self time are equal.
Solution:   Make one time optional.
This commit is contained in:
Bram Moolenaar
2017-01-15 21:12:48 +01:00
parent 1b9750d805
commit e32bbded64
2 changed files with 4 additions and 1 deletions

View File

@@ -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')

View File

@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
194,
/**/ /**/
193, 193,
/**/ /**/