Mercurial > vim
changeset 10609:302aedeed8c9 v8.0.0194
patch 8.0.0194: profile tests fails if total and self time are equal
commit https://github.com/vim/vim/commit/e32bbded641a5da0263ecf82f9ccc95a8e0a089e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 15 21:12:48 2017 +0100
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 15 Jan 2017 21:15:04 +0100 |
parents | 9f1180d6bb28 |
children | 02610b4928a2 |
files | src/testdir/test_profile.vim src/version.c |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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')