aboutsummaryrefslogtreecommitdiff
path: root/runtime/indent
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/indent')
-rw-r--r--runtime/indent/testdir/runtest.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/indent/testdir/runtest.vim b/runtime/indent/testdir/runtest.vim
index 0f0051415d..9502c42f3e 100644
--- 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!