Skip to content

Commit 65408f7

Browse files
committed
patch 8.0.0428: git and hg see new files after running tests
Problem: Git and hg see new files after running tests. (Manuel Ortega) Solution: Add the generated file to .hgignore (or .gitignore). Delete the resulting verbose file. (Christian Brabandt) Improve dependency on opt_test.vim. Reset the 'more' option.
1 parent ad4187e commit 65408f7

File tree

9 files changed

+25
-6
lines changed

9 files changed

+25
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ src/testdir/test.log
7878
src/testdir/dostmp/*
7979
src/testdir/messages
8080
src/testdir/viminfo
81+
src/testdir/opt_test.vim
8182
src/memfile_test
8283
src/json_test
8384
src/message_test

Filelist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ SRC_ALL = \
9797
src/tee/tee.c \
9898
src/xxd/xxd.c \
9999
src/main.aap \
100-
src/gen_opt_test.vim \
100+
src/testdir/gen_opt_test.vim \
101101
src/testdir/main.aap \
102102
src/testdir/README.txt \
103103
src/testdir/Make_all.mak \

src/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2025,7 +2025,6 @@ test check: scripttests unittests
20252025
#
20262026
scripttests:
20272027
$(MAKE) -f Makefile $(VIMTARGET)
2028-
$(MAKE) -f Makefile testdir/opt_test.vim
20292028
if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
20302029
cd $(PODIR); $(MAKE) -f Makefile check VIM=../$(VIMTARGET); \
20312030
fi
@@ -2034,9 +2033,6 @@ scripttests:
20342033
fi
20352034
cd testdir; $(MAKE) -f Makefile $(GUI_TESTTARGET) VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
20362035

2037-
testdir/opt_test.vim: option.c gen_opt_test.vim
2038-
./$(VIMTARGET) -u gen_opt_test.vim --noplugin --not-a-term
2039-
20402036
# Run the tests with the GUI. Assumes vim/gvim was already built
20412037
testgui:
20422038
cd testdir; $(MAKE) -f Makefile $(GUI_TESTTARGET) VIMPROG=../$(VIMTARGET) GUI_FLAG=-g $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)

src/testdir/Make_all.mak

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,3 +221,4 @@ test49.out: test49.vim
221221

222222
test60.out: test60.vim
223223

224+
test_options.res: opt_test.vim

src/testdir/Make_dos.mak

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ clean:
9494
-if exist test.log del test.log
9595
-if exist messages del messages
9696
-if exist benchmark.out del benchmark.out
97+
-if exist opt_test.vim del opt_test.vim
9798

9899
nolog:
99100
-if exist test.log del test.log
@@ -127,3 +128,6 @@ test_gui_init.res: test_gui_init.vim
127128
@echo "$(VIMPROG)" > vimcmd
128129
$(VIMPROG) -u NONE -U gui_init.vim $(NO_PLUGINS) -S runtest.vim $*.vim
129130
@del vimcmd
131+
132+
opt_test.vim: ../option.c gen_opt_test.vim
133+
$(VIMPROG) -u gen_opt_test.vim --noplugin --not-a-term

src/testdir/Make_ming.mak

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ clean:
8888
-@if exist viminfo $(DEL) viminfo
8989
-@if exist test.log $(DEL) test.log
9090
-@if exist messages $(DEL) messages
91+
-@if exist opt_test.vim $(DEL) opt_test.vim
9192

9293
.in.out:
9394
-@if exist $*.ok $(CP) $*.ok test.ok
@@ -131,3 +132,5 @@ test_gui_init.res: test_gui_init.vim
131132
$(VIMPROG) -u NONE -U gui_init.vim $(NO_PLUGINS) -S runtest.vim $<
132133
@$(DEL) vimcmd
133134

135+
opt_test.vim: ../option.c gen_opt_test.vim
136+
$(VIMPROG) -u gen_opt_test.vim --noplugin --not-a-term

src/testdir/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ RM_ON_START = tiny.vim small.vim mbyte.vim mzscheme.vim lua.vim test.ok benchmar
5555
RUN_VIM = VIMRUNTIME=$(SCRIPTSOURCE); export VIMRUNTIME; $(VALGRIND) $(VIMPROG) -f $(GUI_FLAG) -u unix.vim $(NO_INITS) -s dotest.in
5656

5757
clean:
58-
-rm -rf *.out *.failed *.res *.rej *.orig test.log messages $(RM_ON_RUN) $(RM_ON_START) valgrind.*
58+
-rm -rf *.out *.failed *.res *.rej *.orig opt_test.vim test.log messages $(RM_ON_RUN) $(RM_ON_START) valgrind.*
5959

6060
test1.out: test1.in
6161
-rm -rf $*.failed $(RM_ON_RUN) $(RM_ON_START) wrongtermsize
@@ -140,3 +140,7 @@ test_gui_init.res: test_gui_init.vim
140140
@echo "$(RUN_GVIMTEST_WITH_GVIMRC)" > vimcmd
141141
$(RUN_VIMTEST) -u NONE -U gui_init.vim $(NO_PLUGINS) -S runtest.vim $<
142142
@rm vimcmd
143+
144+
opt_test.vim: ../option.c gen_opt_test.vim
145+
$(VIMPROG) -u gen_opt_test.vim --noplugin --not-a-term
146+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ while 1
169169
for val in a[0]
170170
call add(script, 'set ' . name . '=' . val)
171171
call add(script, 'set ' . shortname . '=' . val)
172+
173+
if name == 'verbosefile' && !empty(val)
174+
call add(script, 'call delete("'. val. '")')
175+
endif
172176
endfor
173177

174178
" setting an option can only fail when it's implemented.
@@ -182,6 +186,10 @@ while 1
182186

183187
call add(script, 'set ' . name . '&')
184188
call add(script, 'set ' . shortname . '&')
189+
190+
if name == 'more'
191+
call add(script, 'set nomore')
192+
endif
185193
endif
186194
endwhile
187195

src/version.c

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

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
428,
767769
/**/
768770
427,
769771
/**/

0 commit comments

Comments
 (0)