summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-07 22:33:32 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-07 22:33:32 +0100
commite8512d7fedbddd8d464b2c589e6ba5ab9a41bc78 (patch)
tree40258098e66e89468e1659f62ec70112de269bef
parent65408f7dfbd4bb50d740a8b8f2171080571223f2 (diff)
downloadvim-git-8.0.0429.tar.gz
patch 8.0.0429: options test does not always test everythingv8.0.0429
Problem: Options test does not always test everything. Solution: Fix dependency for opt_test.vim. Give a message when opt_test.vim was not found.
-rw-r--r--src/testdir/Make_all.mak2
-rw-r--r--src/testdir/Make_dos.mak2
-rw-r--r--src/testdir/Make_ming.mak2
-rw-r--r--src/testdir/Makefile3
-rw-r--r--src/testdir/gen_opt_test.vim4
-rw-r--r--src/testdir/test_options.vim3
-rw-r--r--src/version.c2
7 files changed, 10 insertions, 8 deletions
diff --git a/src/testdir/Make_all.mak b/src/testdir/Make_all.mak
index 17c60281f..53fb82928 100644
--- a/src/testdir/Make_all.mak
+++ b/src/testdir/Make_all.mak
@@ -221,4 +221,4 @@ test49.out: test49.vim
test60.out: test60.vim
-test_options.res: opt_test.vim
+test_options.res test_alot.res: opt_test.vim
diff --git a/src/testdir/Make_dos.mak b/src/testdir/Make_dos.mak
index 1a98ebb54..406d56afe 100644
--- a/src/testdir/Make_dos.mak
+++ b/src/testdir/Make_dos.mak
@@ -130,4 +130,4 @@ test_gui_init.res: test_gui_init.vim
@del vimcmd
opt_test.vim: ../option.c gen_opt_test.vim
- $(VIMPROG) -u gen_opt_test.vim --noplugin --not-a-term
+ $(VIMPROG) -u gen_opt_test.vim --noplugin --not-a-term ../option.c
diff --git a/src/testdir/Make_ming.mak b/src/testdir/Make_ming.mak
index 8235b959a..b95a6eaa7 100644
--- a/src/testdir/Make_ming.mak
+++ b/src/testdir/Make_ming.mak
@@ -133,4 +133,4 @@ test_gui_init.res: test_gui_init.vim
@$(DEL) vimcmd
opt_test.vim: ../option.c gen_opt_test.vim
- $(VIMPROG) -u gen_opt_test.vim --noplugin --not-a-term
+ $(VIMPROG) -u gen_opt_test.vim --noplugin --not-a-term ../option.c
diff --git a/src/testdir/Makefile b/src/testdir/Makefile
index e44bd5c7b..d464d67aa 100644
--- a/src/testdir/Makefile
+++ b/src/testdir/Makefile
@@ -142,5 +142,4 @@ test_gui_init.res: test_gui_init.vim
@rm vimcmd
opt_test.vim: ../option.c gen_opt_test.vim
- $(VIMPROG) -u gen_opt_test.vim --noplugin --not-a-term
-
+ $(VIMPROG) -u gen_opt_test.vim --noplugin --not-a-term ../option.c
diff --git a/src/testdir/gen_opt_test.vim b/src/testdir/gen_opt_test.vim
index 07a744bc0..1187dd596 100644
--- a/src/testdir/gen_opt_test.vim
+++ b/src/testdir/gen_opt_test.vim
@@ -13,7 +13,7 @@ let script = [
\ 'let save_term = &term',
\ ]
-edit option.c
+edit
/#define p_term
let end = line('.')
@@ -197,7 +197,7 @@ call add(script, 'let &term = save_term')
call add(script, 'let &columns = save_columns')
call add(script, 'let &lines = save_lines')
-call writefile(script, 'testdir/opt_test.vim')
+call writefile(script, 'opt_test.vim')
endif
diff --git a/src/testdir/test_options.vim b/src/testdir/test_options.vim
index ac43c1a81..9cf5e5f11 100644
--- a/src/testdir/test_options.vim
+++ b/src/testdir/test_options.vim
@@ -301,8 +301,9 @@ func Test_set_all()
endfunc
func Test_set_values()
- " The file is only generated when running "make test" in the src directory.
if filereadable('opt_test.vim')
source opt_test.vim
+ else
+ throw 'Skipped: opt_test.vim does not exist'
endif
endfunc
diff --git a/src/version.c b/src/version.c
index 983a4259e..e8779f529 100644
--- a/src/version.c
+++ b/src/version.c
@@ -765,6 +765,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 429,
+/**/
428,
/**/
427,