summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-06-10 17:43:46 +0200
committerBram Moolenaar <Bram@vim.org>2019-06-10 17:43:46 +0200
commit640d4f0c97e686211dc4474b46a83e4435d883c0 (patch)
treec72abd92b376e8b57ef741e1c48e93d3b95d137d
parent82febc16e4ed54b5af0ff503b02b9fd1af75711b (diff)
downloadvim-git-640d4f0c97e686211dc4474b46a83e4435d883c0.tar.gz
patch 8.1.1516: time reported for a test measured wrongv8.1.1516
Problem: Time reported for a test measured wrong. Solution: Move the computation to the end of RunTheTest(). (Ozaki Kiichi, closes #4520)
-rw-r--r--src/testdir/runtest.vim14
-rw-r--r--src/version.c2
2 files changed, 9 insertions, 7 deletions
diff --git a/src/testdir/runtest.vim b/src/testdir/runtest.vim
index f855f6800..f81c76df1 100644
--- a/src/testdir/runtest.vim
+++ b/src/testdir/runtest.vim
@@ -133,13 +133,6 @@ func RunTheTest(test)
endtry
endif
- let message = 'Executed ' . a:test
- if has('reltime')
- let message ..= ' in ' .. reltimestr(reltime(func_start)) .. ' seconds'
- endif
- call add(s:messages, message)
- let s:done += 1
-
if a:test =~ 'Test_nocatch_'
" Function handles errors itself. This avoids skipping commands after the
" error.
@@ -193,6 +186,13 @@ func RunTheTest(test)
endwhile
exe 'cd ' . save_cwd
+
+ let message = 'Executed ' . a:test
+ if has('reltime')
+ let message ..= ' in ' .. reltimestr(reltime(func_start)) .. ' seconds'
+ endif
+ call add(s:messages, message)
+ let s:done += 1
endfunc
func AfterTheTest()
diff --git a/src/version.c b/src/version.c
index b493377d4..c4c8e3fc1 100644
--- a/src/version.c
+++ b/src/version.c
@@ -778,6 +778,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1516,
+/**/
1515,
/**/
1514,