summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-09-22 15:03:38 +0200
committerBram Moolenaar <Bram@vim.org>2013-09-22 15:03:38 +0200
commit6848c8b561e6c35a3e646c99a82e03c4aa5def92 (patch)
tree36426e7adbd59da81bcf588923d8998966d51d1e
parentbaca7f705babaa1caeb0bce7f63f6275feca6641 (diff)
downloadvim-git-6848c8b561e6c35a3e646c99a82e03c4aa5def92.tar.gz
updated for version 7.4.033v7.4.033
Problem: When the terminal has only 20 lines test 92 and 93 overwrite the input file. Solution: Explicitly write test.out. Check that the terminal is large enough to run the tests. (Hirohito Higashi)
-rw-r--r--src/testdir/Makefile8
-rw-r--r--src/testdir/test1.in4
-rw-r--r--src/testdir/test92.in2
-rw-r--r--src/testdir/test93.in2
-rw-r--r--src/version.c2
5 files changed, 14 insertions, 4 deletions
diff --git a/src/testdir/Makefile b/src/testdir/Makefile
index 0be46fe1b..f736d54d9 100644
--- a/src/testdir/Makefile
+++ b/src/testdir/Makefile
@@ -58,9 +58,13 @@ clean:
-rm -rf *.out *.failed *.rej *.orig test.log $(RM_ON_RUN) $(RM_ON_START) valgrind.*
test1.out: test1.in
- -rm -rf $*.failed $(RM_ON_RUN) $(RM_ON_START)
+ -rm -rf $*.failed $(RM_ON_RUN) $(RM_ON_START) wrongtermsize
$(RUN_VIM) $*.in
- @/bin/sh -c "if diff test.out $*.ok; \
+ @/bin/sh -c "if test -e wrongtermsize; \
+ then echo; \
+ echo test1 FAILED - terminal size must be 80x24 or larger; \
+ echo; exit 1; \
+ elif diff test.out $*.ok; \
then mv -f test.out $*.out; \
else echo; \
echo test1 FAILED - Something basic is wrong; \
diff --git a/src/testdir/test1.in b/src/testdir/test1.in
index c175fa590..735d53967 100644
--- a/src/testdir/test1.in
+++ b/src/testdir/test1.in
@@ -18,6 +18,10 @@ Similar logic is applied to the +mzscheme feature, using mzscheme.vim.
Similar logic is applied to the +lua feature, using lua.vim.
STARTTEST
+:" If columns or lines are too small, create wrongtermsize.
+:" (Some tests will fail. When columns and/or lines are small)
+:if &lines < 24 || &columns < 80 | sp another | w! wrongtermsize | qa! | endif
+:"
:" Write a single line to test.out to check if testing works at all.
:%d
athis is a test:w! test.out
diff --git a/src/testdir/test92.in b/src/testdir/test92.in
index e61483294..9593aec4c 100644
--- a/src/testdir/test92.in
+++ b/src/testdir/test92.in
@@ -33,7 +33,7 @@ j016|3zl:split
:mksession! test.out
:new test.out
:v/\(^ *normal! 0\|^ *exe 'normal!\)/d
-:w
+:w! test.out
:qa!
ENDTEST
diff --git a/src/testdir/test93.in b/src/testdir/test93.in
index 8444ba513..877838ce1 100644
--- a/src/testdir/test93.in
+++ b/src/testdir/test93.in
@@ -33,7 +33,7 @@ j016|3zl:split
:mksession! test.out
:new test.out
:v/\(^ *normal! 0\|^ *exe 'normal!\)/d
-:w
+:w! test.out
:qa!
ENDTEST
diff --git a/src/version.c b/src/version.c
index c8ba9f4f5..fc1880b90 100644
--- a/src/version.c
+++ b/src/version.c
@@ -739,6 +739,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 33,
+/**/
32,
/**/
31,