comparison src/testdir/runtest.vim @ 8116:3c1bdf20c8b9 v7.4.1352

commit https://github.com/vim/vim/commit/93bf558caef2d507ef6baf56eaf6025b63da1e34 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Feb 18 22:25:47 2016 +0100 patch 7.4.1352 Problem: The test script lists all functions before executing them. Solution: Only list the function currently being executed.
author Christian Brabandt <cb@256bit.org>
date Thu, 18 Feb 2016 22:30:09 +0100
parents 770dd91ad9f7
children 71aabce3142e
comparison
equal deleted inserted replaced
8115:bfb8f0183718 8116:3c1bdf20c8b9
88 endif 88 endif
89 89
90 " Locate Test_ functions and execute them. 90 " Locate Test_ functions and execute them.
91 set nomore 91 set nomore
92 redir @q 92 redir @q
93 function /^Test_ 93 silent function /^Test_
94 redir END 94 redir END
95 let s:tests = split(substitute(@q, 'function \(\k*()\)', '\1', 'g')) 95 let s:tests = split(substitute(@q, 'function \(\k*()\)', '\1', 'g'))
96 96
97 " Execute the tests in alphabetical order. 97 " Execute the tests in alphabetical order.
98 for s:test in sort(s:tests) 98 for s:test in sort(s:tests)
99 echo 'Executing ' . s:test
99 if exists("*SetUp") 100 if exists("*SetUp")
100 call SetUp() 101 call SetUp()
101 endif 102 endif
102 103
103 call add(s:messages, 'Executing ' . s:test) 104 call add(s:messages, 'Executing ' . s:test)