Karsten Hopp 4c6f4a
To: vim_dev@googlegroups.com
Karsten Hopp 4c6f4a
Subject: Patch 7.4.231
Karsten Hopp 4c6f4a
Fcc: outbox
Karsten Hopp 4c6f4a
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 4c6f4a
Mime-Version: 1.0
Karsten Hopp 4c6f4a
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 4c6f4a
Content-Transfer-Encoding: 8bit
Karsten Hopp 4c6f4a
------------
Karsten Hopp 4c6f4a
Karsten Hopp 4c6f4a
Patch 7.4.231
Karsten Hopp 4c6f4a
Problem:    An error in ":options" is not caught by the tests.
Karsten Hopp 4c6f4a
Solution:   Add a test for ":options".  Set $VIMRUNTIME for the tests so that
Karsten Hopp 4c6f4a
	    it uses the current runtime files instead of the installed ones.
Karsten Hopp 4c6f4a
Files:	    src/Makefile, src/testdir/Makefile, src/testdir/test_options.in,
Karsten Hopp 4c6f4a
	    src/testdir/test_options.ok, src/testdir/Make_amiga.mak,
Karsten Hopp 4c6f4a
	    src/testdir/Make_dos.mak, src/testdir/Make_ming.mak,
Karsten Hopp 4c6f4a
	    src/testdir/Make_os2.mak, src/testdir/Make_vms.mms
Karsten Hopp 4c6f4a
Karsten Hopp 4c6f4a
Karsten Hopp 4c6f4a
*** ../vim-7.4.230/src/Makefile	2014-03-27 17:40:53.384696360 +0100
Karsten Hopp 4c6f4a
--- src/Makefile	2014-04-01 13:49:14.025089820 +0200
Karsten Hopp 4c6f4a
***************
Karsten Hopp 4c6f4a
*** 1867,1873 ****
Karsten Hopp 4c6f4a
  	-if test $(VIMTARGET) != vim -a ! -r vim; then \
Karsten Hopp 4c6f4a
  		ln -s $(VIMTARGET) vim; \
Karsten Hopp 4c6f4a
  	fi
Karsten Hopp 4c6f4a
! 	cd testdir; $(MAKE) -f Makefile $(GUI_TESTTARGET) VIMPROG=../$(VIMTARGET) $(GUI_TESTARG)
Karsten Hopp 4c6f4a
  	$(MAKE) -f Makefile unittest
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
  unittesttargets:
Karsten Hopp 4c6f4a
--- 1867,1873 ----
Karsten Hopp 4c6f4a
  	-if test $(VIMTARGET) != vim -a ! -r vim; then \
Karsten Hopp 4c6f4a
  		ln -s $(VIMTARGET) vim; \
Karsten Hopp 4c6f4a
  	fi
Karsten Hopp 4c6f4a
! 	cd testdir; $(MAKE) -f Makefile $(GUI_TESTTARGET) VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
Karsten Hopp 4c6f4a
  	$(MAKE) -f Makefile unittest
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
  unittesttargets:
Karsten Hopp 4c6f4a
***************
Karsten Hopp 4c6f4a
*** 1880,1885 ****
Karsten Hopp 4c6f4a
--- 1880,1886 ----
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
  # Run individual test, assuming that Vim was already compiled.
Karsten Hopp 4c6f4a
  test1 test2 test3 test4 test5 test6 test7 test8 test9 \
Karsten Hopp 4c6f4a
+ 	test_options \
Karsten Hopp 4c6f4a
  	test10 test11 test12 test13 test14 test15 test16 test17 test18 test19 \
Karsten Hopp 4c6f4a
  	test20 test21 test22 test23 test24 test25 test26 test27 test28 test29 \
Karsten Hopp 4c6f4a
  	test30 test31 test32 test33 test34 test35 test36 test37 test38 test39 \
Karsten Hopp 4c6f4a
***************
Karsten Hopp 4c6f4a
*** 1890,1896 ****
Karsten Hopp 4c6f4a
  	test80 test81 test82 test83 test84 test85 test86 test87 test88 test89 \
Karsten Hopp 4c6f4a
  	test90 test91 test92 test93 test94 test95 test96 test97 test98 test99 \
Karsten Hopp 4c6f4a
  	test100 test101 test102 test103 test104 test105 test106 test107:
Karsten Hopp 4c6f4a
! 	cd testdir; rm $@.out; $(MAKE) -f Makefile $@.out VIMPROG=../$(VIMTARGET)
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
  testclean:
Karsten Hopp 4c6f4a
  	cd testdir; $(MAKE) -f Makefile clean
Karsten Hopp 4c6f4a
--- 1891,1897 ----
Karsten Hopp 4c6f4a
  	test80 test81 test82 test83 test84 test85 test86 test87 test88 test89 \
Karsten Hopp 4c6f4a
  	test90 test91 test92 test93 test94 test95 test96 test97 test98 test99 \
Karsten Hopp 4c6f4a
  	test100 test101 test102 test103 test104 test105 test106 test107:
Karsten Hopp 4c6f4a
! 	cd testdir; rm $@.out; $(MAKE) -f Makefile $@.out VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
  testclean:
Karsten Hopp 4c6f4a
  	cd testdir; $(MAKE) -f Makefile clean
Karsten Hopp 4c6f4a
*** ../vim-7.4.230/src/testdir/Makefile	2014-03-12 19:41:37.100948866 +0100
Karsten Hopp 4c6f4a
--- src/testdir/Makefile	2014-04-01 13:48:07.593090734 +0200
Karsten Hopp 4c6f4a
***************
Karsten Hopp 4c6f4a
*** 3,8 ****
Karsten Hopp 4c6f4a
--- 3,9 ----
Karsten Hopp 4c6f4a
  #
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
  VIMPROG = ../vim
Karsten Hopp 4c6f4a
+ SCRIPTSOURCE = ../../runtime
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
  # Uncomment this line to use valgrind for memory leaks and extra warnings.
Karsten Hopp 4c6f4a
  #   The output goes into a file "valgrind.testN"
Karsten Hopp 4c6f4a
***************
Karsten Hopp 4c6f4a
*** 31,37 ****
Karsten Hopp 4c6f4a
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 4c6f4a
  		test94.out test95.out test96.out test97.out test98.out \
Karsten Hopp 4c6f4a
  		test99.out test100.out test101.out test102.out test103.out \
Karsten Hopp 4c6f4a
! 		test104.out test105.out test106.out
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
  SCRIPTS_GUI = test16.out
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
--- 32,39 ----
Karsten Hopp 4c6f4a
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 4c6f4a
  		test94.out test95.out test96.out test97.out test98.out \
Karsten Hopp 4c6f4a
  		test99.out test100.out test101.out test102.out test103.out \
Karsten Hopp 4c6f4a
! 		test104.out test105.out test106.out \
Karsten Hopp 4c6f4a
! 		test_options.out
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
  SCRIPTS_GUI = test16.out
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
***************
Karsten Hopp 4c6f4a
*** 53,59 ****
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
  RM_ON_RUN = test.out X* viminfo
Karsten Hopp 4c6f4a
  RM_ON_START = tiny.vim small.vim mbyte.vim mzscheme.vim lua.vim test.ok
Karsten Hopp 4c6f4a
! RUN_VIM = $(VALGRIND) $(VIMPROG) -u unix.vim -U NONE --noplugin -s dotest.in
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
  clean:
Karsten Hopp 4c6f4a
  	-rm -rf *.out *.failed *.rej *.orig test.log $(RM_ON_RUN) $(RM_ON_START) valgrind.*
Karsten Hopp 4c6f4a
--- 55,61 ----
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
  RM_ON_RUN = test.out X* viminfo
Karsten Hopp 4c6f4a
  RM_ON_START = tiny.vim small.vim mbyte.vim mzscheme.vim lua.vim test.ok
Karsten Hopp 4c6f4a
! RUN_VIM = export VIMRUNTIME=$(SCRIPTSOURCE); $(VALGRIND) $(VIMPROG) -u unix.vim -U NONE --noplugin -s dotest.in
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
  clean:
Karsten Hopp 4c6f4a
  	-rm -rf *.out *.failed *.rej *.orig test.log $(RM_ON_RUN) $(RM_ON_START) valgrind.*
Karsten Hopp 4c6f4a
*** ../vim-7.4.230/src/testdir/test_options.in	2014-04-01 14:07:21.057074867 +0200
Karsten Hopp 4c6f4a
--- src/testdir/test_options.in	2014-04-01 13:19:34.073114305 +0200
Karsten Hopp 4c6f4a
***************
Karsten Hopp 4c6f4a
*** 0 ****
Karsten Hopp 4c6f4a
--- 1,17 ----
Karsten Hopp 4c6f4a
+ Test for ":options".
Karsten Hopp 4c6f4a
+ 
Karsten Hopp 4c6f4a
+ STARTTEST
Karsten Hopp 4c6f4a
+ :so small.vim
Karsten Hopp 4c6f4a
+ :let caught = 'ok'
Karsten Hopp 4c6f4a
+ :try
Karsten Hopp 4c6f4a
+   :options
Karsten Hopp 4c6f4a
+ :catch 
Karsten Hopp 4c6f4a
+   :let caught = v:throwpoint . "\n" . v:exception
Karsten Hopp 4c6f4a
+ :endtry
Karsten Hopp 4c6f4a
+ :buf 1
Karsten Hopp 4c6f4a
+ :$put =caught
Karsten Hopp 4c6f4a
+ :/^result/,$w! test.out
Karsten Hopp 4c6f4a
+ :qa!
Karsten Hopp 4c6f4a
+ ENDTEST
Karsten Hopp 4c6f4a
+ 
Karsten Hopp 4c6f4a
+ result
Karsten Hopp 4c6f4a
*** ../vim-7.4.230/src/testdir/test_options.ok	2014-04-01 14:07:21.065074867 +0200
Karsten Hopp 4c6f4a
--- src/testdir/test_options.ok	2014-04-01 13:04:45.041126534 +0200
Karsten Hopp 4c6f4a
***************
Karsten Hopp 4c6f4a
*** 0 ****
Karsten Hopp 4c6f4a
--- 1,2 ----
Karsten Hopp 4c6f4a
+ result
Karsten Hopp 4c6f4a
+ ok
Karsten Hopp 4c6f4a
*** ../vim-7.4.230/src/testdir/Make_amiga.mak	2014-03-12 19:41:37.096948866 +0100
Karsten Hopp 4c6f4a
--- src/testdir/Make_amiga.mak	2014-04-01 13:13:31.561119292 +0200
Karsten Hopp 4c6f4a
***************
Karsten Hopp 4c6f4a
*** 35,41 ****
Karsten Hopp 4c6f4a
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 4c6f4a
  		test94.out test95.out test96.out test97.out test98.out \
Karsten Hopp 4c6f4a
  		test99.out test100.out test101.out test102.out test103.out \
Karsten Hopp 4c6f4a
! 		test104.out test105.out test106.out
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
  .SUFFIXES: .in .out
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
--- 35,42 ----
Karsten Hopp 4c6f4a
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 4c6f4a
  		test94.out test95.out test96.out test97.out test98.out \
Karsten Hopp 4c6f4a
  		test99.out test100.out test101.out test102.out test103.out \
Karsten Hopp 4c6f4a
! 		test104.out test105.out test106.out \
Karsten Hopp 4c6f4a
! 		test_options.out
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
  .SUFFIXES: .in .out
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
***************
Karsten Hopp 4c6f4a
*** 158,160 ****
Karsten Hopp 4c6f4a
--- 159,162 ----
Karsten Hopp 4c6f4a
  test104.out: test104.in
Karsten Hopp 4c6f4a
  test105.out: test105.in
Karsten Hopp 4c6f4a
  test106.out: test106.in
Karsten Hopp 4c6f4a
+ test_options.out: test_options.in
Karsten Hopp 4c6f4a
*** ../vim-7.4.230/src/testdir/Make_dos.mak	2014-03-12 19:41:37.096948866 +0100
Karsten Hopp 4c6f4a
--- src/testdir/Make_dos.mak	2014-04-01 13:14:07.909118792 +0200
Karsten Hopp 4c6f4a
***************
Karsten Hopp 4c6f4a
*** 34,40 ****
Karsten Hopp 4c6f4a
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 4c6f4a
  		test94.out test95.out test96.out test98.out test99.out \
Karsten Hopp 4c6f4a
  		test100.out test101.out test102.out test103.out test104.out \
Karsten Hopp 4c6f4a
! 		test105.out test106.out
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
--- 34,41 ----
Karsten Hopp 4c6f4a
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 4c6f4a
  		test94.out test95.out test96.out test98.out test99.out \
Karsten Hopp 4c6f4a
  		test100.out test101.out test102.out test103.out test104.out \
Karsten Hopp 4c6f4a
! 		test105.out test106.out \
Karsten Hopp 4c6f4a
! 		test_options.out
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
*** ../vim-7.4.230/src/testdir/Make_ming.mak	2014-03-12 19:41:37.096948866 +0100
Karsten Hopp 4c6f4a
--- src/testdir/Make_ming.mak	2014-04-01 13:14:23.889118572 +0200
Karsten Hopp 4c6f4a
***************
Karsten Hopp 4c6f4a
*** 54,60 ****
Karsten Hopp 4c6f4a
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 4c6f4a
  		test94.out test95.out test96.out test98.out test99.out \
Karsten Hopp 4c6f4a
  		test100.out test101.out test102.out test103.out test104.out \
Karsten Hopp 4c6f4a
! 		test105.out test106.out
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
--- 54,61 ----
Karsten Hopp 4c6f4a
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 4c6f4a
  		test94.out test95.out test96.out test98.out test99.out \
Karsten Hopp 4c6f4a
  		test100.out test101.out test102.out test103.out test104.out \
Karsten Hopp 4c6f4a
! 		test105.out test106.out \
Karsten Hopp 4c6f4a
! 		test_options.out
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
*** ../vim-7.4.230/src/testdir/Make_os2.mak	2014-03-12 19:41:37.096948866 +0100
Karsten Hopp 4c6f4a
--- src/testdir/Make_os2.mak	2014-04-01 13:14:34.377118428 +0200
Karsten Hopp 4c6f4a
***************
Karsten Hopp 4c6f4a
*** 36,42 ****
Karsten Hopp 4c6f4a
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 4c6f4a
  		test94.out test95.out test96.out test98.out test99.out \
Karsten Hopp 4c6f4a
  		test100.out test101.out test102.out test103.out test104.out \
Karsten Hopp 4c6f4a
! 		test105.out test106.out
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
  .SUFFIXES: .in .out
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
--- 36,43 ----
Karsten Hopp 4c6f4a
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 4c6f4a
  		test94.out test95.out test96.out test98.out test99.out \
Karsten Hopp 4c6f4a
  		test100.out test101.out test102.out test103.out test104.out \
Karsten Hopp 4c6f4a
! 		test105.out test106.out \
Karsten Hopp 4c6f4a
! 		test_options.out
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
  .SUFFIXES: .in .out
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
*** ../vim-7.4.230/src/testdir/Make_vms.mms	2014-03-12 19:41:37.096948866 +0100
Karsten Hopp 4c6f4a
--- src/testdir/Make_vms.mms	2014-04-01 13:14:47.821118243 +0200
Karsten Hopp 4c6f4a
***************
Karsten Hopp 4c6f4a
*** 95,101 ****
Karsten Hopp 4c6f4a
  	 test90.out test91.out test92.out test93.out test94.out \
Karsten Hopp 4c6f4a
  	 test95.out test96.out test98.out test99.out \
Karsten Hopp 4c6f4a
  	 test100.out test101.out test103.out test104.out \
Karsten Hopp 4c6f4a
! 	 test105.out test106.out
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
  # Known problems:
Karsten Hopp 4c6f4a
  # test17: ?
Karsten Hopp 4c6f4a
--- 95,102 ----
Karsten Hopp 4c6f4a
  	 test90.out test91.out test92.out test93.out test94.out \
Karsten Hopp 4c6f4a
  	 test95.out test96.out test98.out test99.out \
Karsten Hopp 4c6f4a
  	 test100.out test101.out test103.out test104.out \
Karsten Hopp 4c6f4a
! 	 test105.out test106.out \
Karsten Hopp 4c6f4a
! 	 test_options.out
Karsten Hopp 4c6f4a
  
Karsten Hopp 4c6f4a
  # Known problems:
Karsten Hopp 4c6f4a
  # test17: ?
Karsten Hopp 4c6f4a
*** ../vim-7.4.230/src/version.c	2014-04-01 12:26:40.245157964 +0200
Karsten Hopp 4c6f4a
--- src/version.c	2014-04-01 13:14:57.549118109 +0200
Karsten Hopp 4c6f4a
***************
Karsten Hopp 4c6f4a
*** 736,737 ****
Karsten Hopp 4c6f4a
--- 736,739 ----
Karsten Hopp 4c6f4a
  {   /* Add new patch number below this line */
Karsten Hopp 4c6f4a
+ /**/
Karsten Hopp 4c6f4a
+     231,
Karsten Hopp 4c6f4a
  /**/
Karsten Hopp 4c6f4a
Karsten Hopp 4c6f4a
-- 
Karsten Hopp 4c6f4a
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 4c6f4a
11. You find yourself typing "com" after every period when using a word
Karsten Hopp 4c6f4a
    processor.com
Karsten Hopp 4c6f4a
Karsten Hopp 4c6f4a
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 4c6f4a
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 4c6f4a
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 4c6f4a
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///