jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.033

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