Skip to content

Commit e32bbde

Browse files
committed
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.
1 parent 1b9750d commit e32bbde

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/testdir/test_profile.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ func Test_profile_file()
113113
call assert_equal(' " a comment', lines[9])
114114
call assert_match('^\s*20\s\+\d\+\.\d\+\s\+\d\+\.\d\+\s\+call Foo()$', lines[10])
115115
call assert_match('^\s*20\s\+\d\+\.\d\+\s\+endfor$', lines[11])
116-
call assert_match('^\s*2\s\+\d\+\.\d\+\s\+\d\+\.\d\+\s\+call Foo()$', lines[12])
116+
" if self and total are equal we only get one number
117+
call assert_match('^\s*2\s\+\(\d\+\.\d\+\s\+\)\=\d\+\.\d\+\s\+call Foo()$', lines[12])
117118
call assert_equal('', lines[13])
118119

119120
call delete('Xprofile_file.vim')

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
194,
767769
/**/
768770
193,
769771
/**/

0 commit comments

Comments
 (0)