|
Karsten Hopp |
423563 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
423563 |
Subject: Patch 7.4.033
|
|
Karsten Hopp |
423563 |
Fcc: outbox
|
|
Karsten Hopp |
423563 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
423563 |
Mime-Version: 1.0
|
|
Karsten Hopp |
423563 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
423563 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
423563 |
------------
|
|
Karsten Hopp |
423563 |
|
|
Karsten Hopp |
423563 |
Patch 7.4.033
|
|
Karsten Hopp |
423563 |
Problem: When the terminal has only 20 lines test 92 and 93 overwrite the
|
|
Karsten Hopp |
423563 |
input file.
|
|
Karsten Hopp |
423563 |
Solution: Explicitly write test.out. Check that the terminal is large enough
|
|
Karsten Hopp |
423563 |
to run the tests. (Hirohito Higashi)
|
|
Karsten Hopp |
423563 |
Files: src/testdir/test92.in, src/testdir/test93.in,
|
|
Karsten Hopp |
423563 |
src/testdir/test1.in, src/testdir/Makefile
|
|
Karsten Hopp |
423563 |
|
|
Karsten Hopp |
423563 |
|
|
Karsten Hopp |
423563 |
*** ../vim-7.4.032/src/testdir/test92.in 2013-04-18 23:33:45.000000000 +0200
|
|
Karsten Hopp |
423563 |
--- src/testdir/test92.in 2013-09-22 14:45:06.000000000 +0200
|
|
Karsten Hopp |
423563 |
***************
|
|
Karsten Hopp |
423563 |
*** 33,39 ****
|
|
Karsten Hopp |
423563 |
:mksession! test.out
|
|
Karsten Hopp |
423563 |
:new test.out
|
|
Karsten Hopp |
423563 |
:v/\(^ *normal! 0\|^ *exe 'normal!\)/d
|
|
Karsten Hopp |
423563 |
! :w
|
|
Karsten Hopp |
423563 |
:qa!
|
|
Karsten Hopp |
423563 |
ENDTEST
|
|
Karsten Hopp |
423563 |
|
|
Karsten Hopp |
423563 |
--- 33,39 ----
|
|
Karsten Hopp |
423563 |
:mksession! test.out
|
|
Karsten Hopp |
423563 |
:new test.out
|
|
Karsten Hopp |
423563 |
:v/\(^ *normal! 0\|^ *exe 'normal!\)/d
|
|
Karsten Hopp |
423563 |
! :w! test.out
|
|
Karsten Hopp |
423563 |
:qa!
|
|
Karsten Hopp |
423563 |
ENDTEST
|
|
Karsten Hopp |
423563 |
|
|
Karsten Hopp |
423563 |
*** ../vim-7.4.032/src/testdir/test93.in 2013-02-26 17:13:01.000000000 +0100
|
|
Karsten Hopp |
423563 |
--- src/testdir/test93.in 2013-09-22 14:45:17.000000000 +0200
|
|
Karsten Hopp |
423563 |
***************
|
|
Karsten Hopp |
423563 |
*** 33,39 ****
|
|
Karsten Hopp |
423563 |
:mksession! test.out
|
|
Karsten Hopp |
423563 |
:new test.out
|
|
Karsten Hopp |
423563 |
:v/\(^ *normal! 0\|^ *exe 'normal!\)/d
|
|
Karsten Hopp |
423563 |
! :w
|
|
Karsten Hopp |
423563 |
:qa!
|
|
Karsten Hopp |
423563 |
ENDTEST
|
|
Karsten Hopp |
423563 |
|
|
Karsten Hopp |
423563 |
--- 33,39 ----
|
|
Karsten Hopp |
423563 |
:mksession! test.out
|
|
Karsten Hopp |
423563 |
:new test.out
|
|
Karsten Hopp |
423563 |
:v/\(^ *normal! 0\|^ *exe 'normal!\)/d
|
|
Karsten Hopp |
423563 |
! :w! test.out
|
|
Karsten Hopp |
423563 |
:qa!
|
|
Karsten Hopp |
423563 |
ENDTEST
|
|
Karsten Hopp |
423563 |
|
|
Karsten Hopp |
423563 |
*** ../vim-7.4.032/src/testdir/test1.in 2012-04-05 16:37:37.000000000 +0200
|
|
Karsten Hopp |
423563 |
--- src/testdir/test1.in 2013-09-22 14:52:43.000000000 +0200
|
|
Karsten Hopp |
423563 |
***************
|
|
Karsten Hopp |
423563 |
*** 18,23 ****
|
|
Karsten Hopp |
423563 |
--- 18,27 ----
|
|
Karsten Hopp |
423563 |
Similar logic is applied to the +lua feature, using lua.vim.
|
|
Karsten Hopp |
423563 |
|
|
Karsten Hopp |
423563 |
STARTTEST
|
|
Karsten Hopp |
423563 |
+ :" If columns or lines are too small, create wrongtermsize.
|
|
Karsten Hopp |
423563 |
+ :" (Some tests will fail. When columns and/or lines are small)
|
|
Karsten Hopp |
423563 |
+ :if &lines < 24 || &columns < 80 | sp another | w! wrongtermsize | qa! | endif
|
|
Karsten Hopp |
423563 |
+ :"
|
|
Karsten Hopp |
423563 |
:" Write a single line to test.out to check if testing works at all.
|
|
Karsten Hopp |
423563 |
:%d
|
|
Karsten Hopp |
423563 |
athis is a test?:w! test.out
|
|
Karsten Hopp |
423563 |
*** ../vim-7.4.032/src/testdir/Makefile 2013-09-19 17:00:14.000000000 +0200
|
|
Karsten Hopp |
423563 |
--- src/testdir/Makefile 2013-09-22 14:54:39.000000000 +0200
|
|
Karsten Hopp |
423563 |
***************
|
|
Karsten Hopp |
423563 |
*** 58,66 ****
|
|
Karsten Hopp |
423563 |
-rm -rf *.out *.failed *.rej *.orig test.log $(RM_ON_RUN) $(RM_ON_START) valgrind.*
|
|
Karsten Hopp |
423563 |
|
|
Karsten Hopp |
423563 |
test1.out: test1.in
|
|
Karsten Hopp |
423563 |
! -rm -rf $*.failed $(RM_ON_RUN) $(RM_ON_START)
|
|
Karsten Hopp |
423563 |
$(RUN_VIM) $*.in
|
|
Karsten Hopp |
423563 |
! @/bin/sh -c "if diff test.out $*.ok; \
|
|
Karsten Hopp |
423563 |
then mv -f test.out $*.out; \
|
|
Karsten Hopp |
423563 |
else echo; \
|
|
Karsten Hopp |
423563 |
echo test1 FAILED - Something basic is wrong; \
|
|
Karsten Hopp |
423563 |
--- 58,70 ----
|
|
Karsten Hopp |
423563 |
-rm -rf *.out *.failed *.rej *.orig test.log $(RM_ON_RUN) $(RM_ON_START) valgrind.*
|
|
Karsten Hopp |
423563 |
|
|
Karsten Hopp |
423563 |
test1.out: test1.in
|
|
Karsten Hopp |
423563 |
! -rm -rf $*.failed $(RM_ON_RUN) $(RM_ON_START) wrongtermsize
|
|
Karsten Hopp |
423563 |
$(RUN_VIM) $*.in
|
|
Karsten Hopp |
423563 |
! @/bin/sh -c "if test -e wrongtermsize; \
|
|
Karsten Hopp |
423563 |
! then echo; \
|
|
Karsten Hopp |
423563 |
! echo test1 FAILED - terminal size must be 80x24 or larger; \
|
|
Karsten Hopp |
423563 |
! echo; exit 1; \
|
|
Karsten Hopp |
423563 |
! elif diff test.out $*.ok; \
|
|
Karsten Hopp |
423563 |
then mv -f test.out $*.out; \
|
|
Karsten Hopp |
423563 |
else echo; \
|
|
Karsten Hopp |
423563 |
echo test1 FAILED - Something basic is wrong; \
|
|
Karsten Hopp |
423563 |
*** ../vim-7.4.032/src/version.c 2013-09-22 13:57:19.000000000 +0200
|
|
Karsten Hopp |
423563 |
--- src/version.c 2013-09-22 15:02:04.000000000 +0200
|
|
Karsten Hopp |
423563 |
***************
|
|
Karsten Hopp |
423563 |
*** 740,741 ****
|
|
Karsten Hopp |
423563 |
--- 740,743 ----
|
|
Karsten Hopp |
423563 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
423563 |
+ /**/
|
|
Karsten Hopp |
423563 |
+ 33,
|
|
Karsten Hopp |
423563 |
/**/
|
|
Karsten Hopp |
423563 |
|
|
Karsten Hopp |
423563 |
--
|
|
Karsten Hopp |
423563 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
423563 |
248. You sign your letters with your e-mail address instead of your name.
|
|
Karsten Hopp |
423563 |
|
|
Karsten Hopp |
423563 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
423563 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
423563 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
423563 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|