]> granicus.if.org Git - vim/commitdiff
patch 8.1.1490: when a single test fails the exit code is not set v8.1.1490
authorBram Moolenaar <Bram@vim.org>
Fri, 7 Jun 2019 20:40:25 +0000 (22:40 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 7 Jun 2019 20:40:25 +0000 (22:40 +0200)
Problem:    When a single test fails the exit code is not set. (Daniel Hahler)
Solution:   Add an exit command. (closes #4506)

src/testdir/Makefile
src/version.c

index f28c9414f78abea2bc2fca922b1c198ea9bef6f2..bf64a03837cc2d8c5ba719c5f646c87dcda8fffb 100644 (file)
@@ -74,10 +74,10 @@ $(SCRIPTS) $(SCRIPTS_GUI) $(NEW_TESTS_RES): $(SCRIPTS_FIRST)
 $(NEW_TESTS):
        rm -f $@.res test.log messages
        $(MAKE) -f Makefile $@.res
+       cat messages
        @if test -f test.log; then \
-               cat test.log; \
+               exit 1; \
        fi
-       cat messages
 
 RM_ON_RUN = test.out X* viminfo
 RM_ON_START = tiny.vim small.vim mbyte.vim mzscheme.vim test.ok benchmark.out
index f63c5f37fa9b76288c6bc06ccd078f818b743e04..75ebdc1edce8f4ab3c509f7bcdea7d457498c318 100644 (file)
@@ -767,6 +767,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1490,
 /**/
     1489,
 /**/