]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.231 v7.4.231
authorBram Moolenaar <Bram@vim.org>
Tue, 1 Apr 2014 12:08:28 +0000 (14:08 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 1 Apr 2014 12:08:28 +0000 (14:08 +0200)
Problem:    An error in ":options" is not caught by the tests.
Solution:   Add a test for ":options".  Set $VIMRUNTIME for the tests so that
            it uses the current runtime files instead of the installed ones.

src/Makefile
src/testdir/Make_amiga.mak
src/testdir/Make_dos.mak
src/testdir/Make_ming.mak
src/testdir/Make_os2.mak
src/testdir/Make_vms.mms
src/testdir/Makefile
src/testdir/test_options.in [new file with mode: 0644]
src/testdir/test_options.ok [new file with mode: 0644]
src/version.c

index ffa8d246eeca795e1b60007a6f31cb6d979e5a3f..55fa662fe0809e0a2b326b07b4e16390a8955e94 100644 (file)
@@ -1867,7 +1867,7 @@ test check:
        -if test $(VIMTARGET) != vim -a ! -r vim; then \
                ln -s $(VIMTARGET) vim; \
        fi
-       cd testdir; $(MAKE) -f Makefile $(GUI_TESTTARGET) VIMPROG=../$(VIMTARGET) $(GUI_TESTARG)
+       cd testdir; $(MAKE) -f Makefile $(GUI_TESTTARGET) VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
        $(MAKE) -f Makefile unittest
 
 unittesttargets:
@@ -1880,6 +1880,7 @@ unittest unittests: $(UNITTEST_TARGETS)
 
 # Run individual test, assuming that Vim was already compiled.
 test1 test2 test3 test4 test5 test6 test7 test8 test9 \
+       test_options \
        test10 test11 test12 test13 test14 test15 test16 test17 test18 test19 \
        test20 test21 test22 test23 test24 test25 test26 test27 test28 test29 \
        test30 test31 test32 test33 test34 test35 test36 test37 test38 test39 \
@@ -1890,7 +1891,7 @@ test1 test2 test3 test4 test5 test6 test7 test8 test9 \
        test80 test81 test82 test83 test84 test85 test86 test87 test88 test89 \
        test90 test91 test92 test93 test94 test95 test96 test97 test98 test99 \
        test100 test101 test102 test103 test104 test105 test106 test107:
-       cd testdir; rm $@.out; $(MAKE) -f Makefile $@.out VIMPROG=../$(VIMTARGET)
+       cd testdir; rm $@.out; $(MAKE) -f Makefile $@.out VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
 
 testclean:
        cd testdir; $(MAKE) -f Makefile clean
index 40c62ecf40273320dd2e261f45d0ebffa32f2dd4..7310ab57d8cb45369300a743979657f731a6a98c 100644 (file)
@@ -35,7 +35,8 @@ SCRIPTS = test1.out test3.out test4.out test5.out test6.out \
                test89.out test90.out test91.out test92.out test93.out \
                test94.out test95.out test96.out test97.out test98.out \
                test99.out test100.out test101.out test102.out test103.out \
-               test104.out test105.out test106.out
+               test104.out test105.out test106.out \
+               test_options.out
 
 .SUFFIXES: .in .out
 
@@ -158,3 +159,4 @@ test103.out: test103.in
 test104.out: test104.in
 test105.out: test105.in
 test106.out: test106.in
+test_options.out: test_options.in
index 45b74b44b0bce4ec98ac014251dad44f7af4efd5..8f749b0dfe9d6734ffbd65f992b2dcec3679e06e 100644 (file)
@@ -34,7 +34,8 @@ SCRIPTS =     test3.out test4.out test5.out test6.out test7.out \
                test89.out test90.out test91.out test92.out test93.out \
                test94.out test95.out test96.out test98.out test99.out \
                test100.out test101.out test102.out test103.out test104.out \
-               test105.out test106.out
+               test105.out test106.out \
+               test_options.out
 
 SCRIPTS32 =    test50.out test70.out
 
index 9f0e0ab063cd0d2b9408450b093c9a839fd4439b..855885999e71111105df4872af217f0063b31fcb 100644 (file)
@@ -54,7 +54,8 @@ SCRIPTS =     test3.out test4.out test5.out test6.out test7.out \
                test89.out test90.out test91.out test92.out test93.out \
                test94.out test95.out test96.out test98.out test99.out \
                test100.out test101.out test102.out test103.out test104.out \
-               test105.out test106.out
+               test105.out test106.out \
+               test_options.out
 
 SCRIPTS32 =    test50.out test70.out
 
index 116c302b40cb40a833cb2cf01f7825cf76aa3fdf..a6ba86a9ab3c1fa4bbe482a01dbda43dfe13406f 100644 (file)
@@ -36,7 +36,8 @@ SCRIPTS = test1.out test3.out test4.out test5.out test6.out \
                test89.out test90.out test91.out test92.out test93.out \
                test94.out test95.out test96.out test98.out test99.out \
                test100.out test101.out test102.out test103.out test104.out \
-               test105.out test106.out
+               test105.out test106.out \
+               test_options.out
 
 .SUFFIXES: .in .out
 
index b210d504aafbcf4036827d039eb22229d1b84f5f..e7cbf092721c3d9a6ac9a91931152cd06abe4def 100644 (file)
@@ -95,7 +95,8 @@ SCRIPT = test1.out  test2.out  test3.out  test4.out  test5.out  \
         test90.out test91.out test92.out test93.out test94.out \
         test95.out test96.out test98.out test99.out \
         test100.out test101.out test103.out test104.out \
-        test105.out test106.out
+        test105.out test106.out \
+        test_options.out
 
 # Known problems:
 # test17: ?
index c9e8922237b087037cb49681cc8158034e01b06b..66536ae44bee088ed9dcb45ccf50f8265106f4fa 100644 (file)
@@ -3,6 +3,7 @@
 #
 
 VIMPROG = ../vim
+SCRIPTSOURCE = ../../runtime
 
 # Uncomment this line to use valgrind for memory leaks and extra warnings.
 #   The output goes into a file "valgrind.testN"
@@ -31,7 +32,8 @@ SCRIPTS = test1.out test2.out test3.out test4.out test5.out test6.out \
                test89.out test90.out test91.out test92.out test93.out \
                test94.out test95.out test96.out test97.out test98.out \
                test99.out test100.out test101.out test102.out test103.out \
-               test104.out test105.out test106.out
+               test104.out test105.out test106.out \
+               test_options.out
 
 SCRIPTS_GUI = test16.out
 
@@ -53,7 +55,7 @@ $(SCRIPTS) $(SCRIPTS_GUI): $(VIMPROG)
 
 RM_ON_RUN = test.out X* viminfo
 RM_ON_START = tiny.vim small.vim mbyte.vim mzscheme.vim lua.vim test.ok
-RUN_VIM = $(VALGRIND) $(VIMPROG) -u unix.vim -U NONE --noplugin -s dotest.in
+RUN_VIM = export VIMRUNTIME=$(SCRIPTSOURCE); $(VALGRIND) $(VIMPROG) -u unix.vim -U NONE --noplugin -s dotest.in
 
 clean:
        -rm -rf *.out *.failed *.rej *.orig test.log $(RM_ON_RUN) $(RM_ON_START) valgrind.*
diff --git a/src/testdir/test_options.in b/src/testdir/test_options.in
new file mode 100644 (file)
index 0000000..bf1232a
--- /dev/null
@@ -0,0 +1,17 @@
+Test for ":options".
+
+STARTTEST
+:so small.vim
+:let caught = 'ok'
+:try
+  :options
+:catch 
+  :let caught = v:throwpoint . "\n" . v:exception
+:endtry
+:buf 1
+:$put =caught
+:/^result/,$w! test.out
+:qa!
+ENDTEST
+
+result
diff --git a/src/testdir/test_options.ok b/src/testdir/test_options.ok
new file mode 100644 (file)
index 0000000..a2e1494
--- /dev/null
@@ -0,0 +1,2 @@
+result
+ok
index ef8d474d25042cddfd36ed3cfb6740e6b56d9503..bd6ad3f43280c658777c504af15feb44d35aa1ef 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    231,
 /**/
     230,
 /**/