# HG changeset patch # User Bram Moolenaar # Date 1568837704 -7200 # Node ID 0cc306ebc8fe4836f4549ab7eef295a764de55e6 # Parent a505da83c907cefff94aecd58406714f65784037 patch 8.1.2056: "make test" for indent files doesn't cause make to fail Commit: https://github.com/vim/vim/commit/cd67059c0c3abf1e28aa66458abdf6f338252eb2 Author: Bram Moolenaar Date: Wed Sep 18 22:14:43 2019 +0200 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 https://github.com/vim/vim/issues/4949) diff --git a/.gitignore b/.gitignore --- a/.gitignore +++ b/.gitignore @@ -77,6 +77,7 @@ src/testdir/messages src/testdir/viminfo src/testdir/opt_test.vim runtime/indent/testdir/*.out +runtime/indent/testdir/*.fail src/memfile_test src/json_test src/message_test diff --git a/runtime/indent/testdir/runtest.vim b/runtime/indent/testdir/runtest.vim --- a/runtime/indent/testdir/runtest.vim +++ b/runtime/indent/testdir/runtest.vim @@ -20,6 +20,7 @@ func HandleSwapExists() endif endfunc +let failed_count = 0 for fname in glob('testdir/*.in', 1, 1) let root = substitute(fname, '\.in', '', '') @@ -110,6 +111,7 @@ for fname in glob('testdir/*.in', 1, 1) endif if failed + let failed_count += 1 exe 'write ' . root . '.fail' echoerr 'Test ' . fname . ' FAILED!' else @@ -123,4 +125,8 @@ endfor " Matching "if 1" at the start. endif +if failed_count > 0 + " have make report an error + cquit +endif qall! diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -758,6 +758,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2056, +/**/ 2055, /**/ 2054,