Skip to content

Commit 4e0bf84

Browse files
committed
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 #4506)
1 parent 6441612 commit 4e0bf84

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/testdir/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ $(SCRIPTS) $(SCRIPTS_GUI) $(NEW_TESTS_RES): $(SCRIPTS_FIRST)
7474
$(NEW_TESTS):
7575
rm -f $@.res test.log messages
7676
$(MAKE) -f Makefile $@.res
77+
cat messages
7778
@if test -f test.log; then \
78-
cat test.log; \
79+
exit 1; \
7980
fi
80-
cat messages
8181

8282
RM_ON_RUN = test.out X* viminfo
8383
RM_ON_START = tiny.vim small.vim mbyte.vim mzscheme.vim test.ok benchmark.out

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,8 @@ static char *(features[]) =
767767

768768
static int included_patches[] =
769769
{ /* Add new patch number below this line */
770+
/**/
771+
1490,
770772
/**/
771773
1489,
772774
/**/

0 commit comments

Comments
 (0)