1
0
forked from aniani/vim

patch 8.1.0711: test files still use function!

Problem:    Test files still use function!.
Solution:   Remove the exclamation mark.  Fix overwriting a function.
This commit is contained in:
Bram Moolenaar
2019-01-09 23:01:02 +01:00
parent c46af53410
commit 1e1153600c
35 changed files with 456 additions and 430 deletions

View File

@@ -1,6 +1,6 @@
" Tests for system() and systemlist()
function! Test_System()
func Test_System()
if !executable('echo') || !executable('cat') || !executable('wc')
return
endif
@@ -45,9 +45,9 @@ function! Test_System()
bwipe!
call assert_fails('call system("wc -l", 99999)', 'E86:')
endfunction
endfunc
function! Test_system_exmode()
func Test_system_exmode()
if has('unix') " echo $? only works on Unix
let cmd = ' -es -u NONE -c "source Xscript" +q; echo "result=$?"'
" Need to put this in a script, "catch" isn't found after an unknown