mirror of
https://github.com/vim/vim.git
synced 2025-08-29 20:33:37 -04:00
patch 8.1.2056: "make test" for indent files doesn't cause make to fail
Problem: "make test" for indent files doesn't cause make to fail. Solution: Exit the script with ":cquit". (Daniel Hahler, closes #4949)
This commit is contained in:
parent
181d4f58cc
commit
cd67059c0c
1
.gitignore
vendored
1
.gitignore
vendored
@ -77,6 +77,7 @@ src/testdir/messages
|
|||||||
src/testdir/viminfo
|
src/testdir/viminfo
|
||||||
src/testdir/opt_test.vim
|
src/testdir/opt_test.vim
|
||||||
runtime/indent/testdir/*.out
|
runtime/indent/testdir/*.out
|
||||||
|
runtime/indent/testdir/*.fail
|
||||||
src/memfile_test
|
src/memfile_test
|
||||||
src/json_test
|
src/json_test
|
||||||
src/message_test
|
src/message_test
|
||||||
|
@ -20,6 +20,7 @@ func HandleSwapExists()
|
|||||||
endif
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
let failed_count = 0
|
||||||
for fname in glob('testdir/*.in', 1, 1)
|
for fname in glob('testdir/*.in', 1, 1)
|
||||||
let root = substitute(fname, '\.in', '', '')
|
let root = substitute(fname, '\.in', '', '')
|
||||||
|
|
||||||
@ -110,6 +111,7 @@ for fname in glob('testdir/*.in', 1, 1)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if failed
|
if failed
|
||||||
|
let failed_count += 1
|
||||||
exe 'write ' . root . '.fail'
|
exe 'write ' . root . '.fail'
|
||||||
echoerr 'Test ' . fname . ' FAILED!'
|
echoerr 'Test ' . fname . ' FAILED!'
|
||||||
else
|
else
|
||||||
@ -123,4 +125,8 @@ endfor
|
|||||||
" Matching "if 1" at the start.
|
" Matching "if 1" at the start.
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if failed_count > 0
|
||||||
|
" have make report an error
|
||||||
|
cquit
|
||||||
|
endif
|
||||||
qall!
|
qall!
|
||||||
|
@ -757,6 +757,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2056,
|
||||||
/**/
|
/**/
|
||||||
2055,
|
2055,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user