From: Bram Moolenaar Date: Sun, 15 Jan 2017 20:12:48 +0000 (+0100) Subject: patch 8.0.0194: profile tests fails if total and self time are equal X-Git-Tag: v8.0.0194 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e32bbded641a5da0263ecf82f9ccc95a8e0a089e;p=vim 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. --- diff --git a/src/testdir/test_profile.vim b/src/testdir/test_profile.vim index 36c05683d..23d148e47 100644 --- a/src/testdir/test_profile.vim +++ b/src/testdir/test_profile.vim @@ -113,7 +113,8 @@ func Test_profile_file() 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\+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 delete('Xprofile_file.vim') diff --git a/src/version.c b/src/version.c index 401f79fe3..cfb4e5969 100644 --- a/src/version.c +++ b/src/version.c @@ -764,6 +764,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 194, /**/ 193, /**/