Mercurial > vim
comparison src/testdir/Makefile @ 16980:f3a6c2c31551 v8.1.1490
patch 8.1.1490: when a single test fails the exit code is not set
commit https://github.com/vim/vim/commit/4e0bf846279f3efa6299a98143033db1fdfa143a
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jun 7 22:40:25 2019 +0200
patch 8.1.1490: when a single test fails the exit code is not set
Problem: When a single test fails the exit code is not set. (Daniel Hahler)
Solution: Add an exit command. (closes https://github.com/vim/vim/issues/4506)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 07 Jun 2019 22:45:06 +0200 |
parents | 1266ca221df8 |
children | 9d9b637b35a9 |
comparison
equal
deleted
inserted
replaced
16979:b0fdc7de166b | 16980:f3a6c2c31551 |
---|---|
72 # Execute an individual new style test, e.g.: | 72 # Execute an individual new style test, e.g.: |
73 # make test_largefile | 73 # make test_largefile |
74 $(NEW_TESTS): | 74 $(NEW_TESTS): |
75 rm -f $@.res test.log messages | 75 rm -f $@.res test.log messages |
76 $(MAKE) -f Makefile $@.res | 76 $(MAKE) -f Makefile $@.res |
77 cat messages | |
77 @if test -f test.log; then \ | 78 @if test -f test.log; then \ |
78 cat test.log; \ | 79 exit 1; \ |
79 fi | 80 fi |
80 cat messages | |
81 | 81 |
82 RM_ON_RUN = test.out X* viminfo | 82 RM_ON_RUN = test.out X* viminfo |
83 RM_ON_START = tiny.vim small.vim mbyte.vim mzscheme.vim test.ok benchmark.out | 83 RM_ON_START = tiny.vim small.vim mbyte.vim mzscheme.vim test.ok benchmark.out |
84 RUN_VIM = VIMRUNTIME=$(SCRIPTSOURCE); export VIMRUNTIME; $(VALGRIND) $(VIMPROG) -f $(GUI_FLAG) -u unix.vim $(NO_INITS) -s dotest.in | 84 RUN_VIM = VIMRUNTIME=$(SCRIPTSOURCE); export VIMRUNTIME; $(VALGRIND) $(VIMPROG) -f $(GUI_FLAG) -u unix.vim $(NO_INITS) -s dotest.in |
85 | 85 |