]> granicus.if.org Git - vim/commitdiff
patch 7.4.2295 v7.4.2295
authorBram Moolenaar <Bram@vim.org>
Tue, 30 Aug 2016 08:56:50 +0000 (10:56 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 30 Aug 2016 08:56:50 +0000 (10:56 +0200)
Problem:    Cscope test fails.
Solution:   Avoid checking for specific line and column numbers.

src/testdir/test_cscope.vim
src/version.c

index e9ed490372719aa3e4670866f95a5f31b2008e6a..4e78faa9fd9003818d89503120bd0f04454fa5df 100644 (file)
@@ -97,7 +97,7 @@ func Test_cscopeWithCscopeConnections()
     for cmd in ['cs find f Xmemfile_test.c', 'cs find 7 Xmemfile_test.c']
       enew
       let a=execute(cmd)
-      call assert_match('\n"Xmemfile_test.c" 143L, 3137C', a)
+      call assert_true(a =~ '"Xmemfile_test.c" \d\+L, \d\+C')
       call assert_equal('Xmemfile_test.c', @%)
     endfor
 
@@ -105,7 +105,10 @@ func Test_cscopeWithCscopeConnections()
     for cmd in ['cs find i assert.h', 'cs find 8 assert.h']
       enew
       let a=execute(cmd)
-      call assert_equal(['','"Xmemfile_test.c" 143L, 3137C','(1 of 1): <<global>> #include <assert.h>'], split(a, '\n', 1))
+      let alines = split(a, '\n', 1)
+      call assert_equal('', alines[0])
+      call assert_true(alines[1] =~ '"Xmemfile_test.c" \d\+L, \d\+C')
+      call assert_equal('(1 of 1): <<global>> #include <assert.h>', alines[2])
       call assert_equal('#include <assert.h>', getline('.'))
     endfor
 
index d881342b1e7abf4a9e5cb9cc95e79533c4d22f3b..f0f9c827fba7470653190113e8408a9be2c1fb81 100644 (file)
@@ -763,6 +763,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2295,
 /**/
     2294,
 /**/