]> granicus.if.org Git - vim/commitdiff
patch 8.1.0599: without the +eval feature the indent tests don't work v8.1.0599
authorBram Moolenaar <Bram@vim.org>
Sat, 15 Dec 2018 16:43:42 +0000 (17:43 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 15 Dec 2018 16:43:42 +0000 (17:43 +0100)
Problem:    Without the +eval feature the indent tests don't work.
Solution:   Skip the body of the tests.

runtime/indent/testdir/cleantest.vim
runtime/indent/testdir/runtest.vim
src/version.c

index 909cf812c4327ab3d2271abb25d50ae6e66393c3..69c0a1d4ba739872332a6ca84fc791bf0aa3c56f 100644 (file)
@@ -1,6 +1,11 @@
-" Deletes all the test output files: *.fail and *.out
-for fname in glob('testdir/*.out', 1, 1) + glob('testdir/*.fail', 1, 1)
-  call delete(fname)
-endfor
+" Only do this with the +eval feature
+if 1
+
+  " Deletes all the test output files: *.fail and *.out
+  for fname in glob('testdir/*.out', 1, 1) + glob('testdir/*.fail', 1, 1)
+    call delete(fname)
+  endfor
+
+endif
 
 quit
index 1cc0d3f716813a3eabbae52dda81a7edf08e6abf..96c31453af31ca0d3a0d335dfd9946ce0e24053d 100644 (file)
@@ -2,6 +2,9 @@
 "
 " Current directory must be runtime/indent.
 
+" Only do this with the +eval feature
+if 1
+
 set nocp
 filetype indent on
 set nowrapscan
@@ -116,4 +119,7 @@ for fname in glob('testdir/*.in', 1, 1)
   endif
 endfor
 
+" Matching "if 1" at the start.
+endif
+
 qall!
index 7e8b34efeb4afa0ead41614fe9932b99b1f8a181..0231cc8ee6bfec7d91b2d32026ffd8a243cdae70 100644 (file)
@@ -799,6 +799,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    599,
 /**/
     598,
 /**/