• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Revisão4dd75cfd946f31e81eaa4b03ec81ef141c562137 (tree)
Hora2007-08-15 00:29:16
Autorvimboss
Commitervimboss

Mensagem de Log

updated for version 7.1-071

Mudança Sumário

Diff

diff -r c87f38b71d27 -r 4dd75cfd946f src/testdir/Makefile
--- a/src/testdir/Makefile Tue Aug 14 14:57:55 2007 +0000
+++ b/src/testdir/Makefile Tue Aug 14 15:29:16 2007 +0000
@@ -4,6 +4,10 @@
44
55 VIMPROG = ../vim
66
7+# Uncomment this line for using valgrind.
8+# The output goes into a file "valgrind.$PID" (sorry, no test number).
9+# VALGRIND = valgrind --tool=memcheck --num-callers=15 --logfile=valgrind
10+
711 SCRIPTS = test1.out test2.out test3.out test4.out test5.out test6.out \
812 test7.out test8.out test9.out test10.out test11.out \
913 test12.out test13.out test14.out test15.out test17.out \
@@ -15,7 +19,8 @@
1519 test43.out test44.out test45.out test46.out test47.out \
1620 test48.out test49.out test51.out test52.out test53.out \
1721 test54.out test55.out test56.out test57.out test58.out \
18- test59.out test60.out test61.out test62.out test63.out
22+ test59.out test60.out test61.out test62.out test63.out \
23+ test64.out
1924
2025 SCRIPTS_GUI = test16.out
2126
@@ -38,7 +43,7 @@
3843
3944 test1.out: test1.in
4045 -rm -f $*.failed tiny.vim small.vim mbyte.vim test.ok X* viminfo
41- $(VIMPROG) -u unix.vim -U NONE --noplugin -s dotest.in $*.in
46+ $(VALGRIND) $(VIMPROG) -u unix.vim -U NONE --noplugin -s dotest.in $*.in
4247 @/bin/sh -c "if diff test.out $*.ok; \
4348 then mv -f test.out $*.out; \
4449 else echo; \
@@ -51,7 +56,7 @@
5156 cp $*.ok test.ok
5257 # Sleep a moment to avoid that the xterm title is messed up
5358 @-sleep .2
54- -$(VIMPROG) -u unix.vim -U NONE --noplugin -s dotest.in $*.in
59+ -$(VALGRIND) $(VIMPROG) -u unix.vim -U NONE --noplugin -s dotest.in $*.in
5560 @/bin/sh -c "if test -f test.out; then\
5661 if diff test.out $*.ok; \
5762 then mv -f test.out $*.out; \
diff -r c87f38b71d27 -r 4dd75cfd946f src/testdir/test64.in
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/testdir/test64.in Tue Aug 14 15:29:16 2007 +0000
@@ -0,0 +1,52 @@
1+Test for regexp patterns.
2+
3+A pattern that gives the expected result produces OK, so that we know it was
4+actually tried.
5+
6+STARTTEST
7+:so small.vim
8+:" tl is a List of Lists with:
9+:" regexp pattern
10+:" text to test the pattern on
11+:" expected match (optional)
12+:" expected submatch 1 (optional)
13+:" expected submatch 2 (optional)
14+:" etc.
15+:" When there is no match use only the first two items.
16+:let tl = []
17+:call add(tl, ['b', 'abcdef', 'b'])
18+:call add(tl, ['bc*', 'abccccdef', 'bcccc'])
19+:call add(tl, ['bc\{-}', 'abccccdef', 'b'])
20+:call add(tl, ['bc\{-}\(d\)', 'abccccdef', 'bccccd', 'd'])
21+:call add(tl, ['x', 'abcdef'])
22+:"
23+:for t in tl
24+: let l = matchlist(t[1], t[0])
25+:" check the match itself
26+: if len(l) == 0 && len(t) > 2
27+: $put ='ERROR: pat: \"' . t[0] . '\", text: \"' . t[1] . '\", did not match, expected: \"' . t[2] . '\"'
28+: elseif len(l) > 0 && len(t) == 2
29+: $put ='ERROR: pat: \"' . t[0] . '\", text: \"' . t[1] . '\", match: \"' . l[0] . '\", expected no match'
30+: elseif len(t) > 2 && l[0] != t[2]
31+: $put ='ERROR: pat: \"' . t[0] . '\", text: \"' . t[1] . '\", match: \"' . l[0] . '\", expected: \"' . t[2] . '\"'
32+: else
33+: $put ='OK'
34+: endif
35+: if len(l) > 0
36+:" check all the nine submatches
37+: for i in range(1, 9)
38+: if len(t) <= i + 2
39+: let e = ''
40+: else
41+: let e = t[i + 2]
42+: endif
43+: if l[i] != e
44+: $put ='ERROR: pat: \"' . t[0] . '\", text: \"' . t[1] . '\", submatch ' . i . ': \"' . l[i] . '\", expected: \"' . e . '\"'
45+: endif
46+: endfor
47+: endif
48+:endfor
49+:/^Results/,$wq! test.out
50+ENDTEST
51+
52+Results of test64:
diff -r c87f38b71d27 -r 4dd75cfd946f src/testdir/test64.ok
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/testdir/test64.ok Tue Aug 14 15:29:16 2007 +0000
@@ -0,0 +1,6 @@
1+Results of test64:
2+OK
3+OK
4+OK
5+OK
6+OK
diff -r c87f38b71d27 -r 4dd75cfd946f src/version.c
--- a/src/version.c Tue Aug 14 14:57:55 2007 +0000
+++ b/src/version.c Tue Aug 14 15:29:16 2007 +0000
@@ -667,6 +667,8 @@
667667 static int included_patches[] =
668668 { /* Add new patch number below this line */
669669 /**/
670+ 71,
671+/**/
670672 70,
671673 /**/
672674 69,
Show on old repository browser