Permalink
Browse files

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)
  • Loading branch information...
brammool committed Aug 14, 2017
1 parent 3678393 commit d21b16f3c0c676bfe3a37aef1ac3118e1ecded60
Showing with 4 additions and 1 deletion.
  1. +2 −1 src/testdir/test_profile.vim
  2. +2 −0 src/version.c
@@ -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])
View
@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
944,
/**/
943,
/**/

0 comments on commit d21b16f

Please sign in to comment.