Skip to content

Commit d21b16f

Browse files
committed
patch 8.0.0944: test_profile is a little bit flaky
Problem: Test_profile is a little bit flaky. Solution: Accept a match when self and total time are the same. (James McCoy, closes #1972)
1 parent 3678393 commit d21b16f

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
@@ -121,7 +121,8 @@ func Test_profile_file()
121121
" First line of loop executes one more time than body to detect end of loop.
122122
call assert_match('^\s*22\s\+\d\+\.\d\+\s\+for i in range(10)$', lines[8])
123123
call assert_equal(' " a comment', lines[9])
124-
call assert_match('^\s*20\s\+\d\+\.\d\+\s\+\d\+\.\d\+\s\+call Foo()$', lines[10])
124+
" if self and total are equal we only get one number
125+
call assert_match('^\s*20\s\+\(\d\+\.\d\+\s\+\)\=\d\+\.\d\+\s\+call Foo()$', lines[10])
125126
call assert_match('^\s*20\s\+\d\+\.\d\+\s\+endfor$', lines[11])
126127
" if self and total are equal we only get one number
127128
call assert_match('^\s*2\s\+\(\d\+\.\d\+\s\+\)\=\d\+\.\d\+\s\+call Foo()$', lines[12])

src/version.c

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

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
944,
772774
/**/
773775
943,
774776
/**/

0 commit comments

Comments
 (0)