# HG changeset patch # User Christian Brabandt # Date 1472547607 -7200 # Node ID 4a07f8de5efa62a3353333ff92ceba426681f68c # Parent 672a63fac3d29ff4bd40e2f44fce3114a5c93209 commit https://github.com/vim/vim/commit/4792255eff03760dca0fd014616532e6d47db364 Author: Bram Moolenaar Date: Tue Aug 30 10:56:50 2016 +0200 patch 7.4.2295 Problem: Cscope test fails. Solution: Avoid checking for specific line and column numbers. diff --git a/src/testdir/test_cscope.vim b/src/testdir/test_cscope.vim --- a/src/testdir/test_cscope.vim +++ b/src/testdir/test_cscope.vim @@ -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): <> #include '], 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): <> #include ', alines[2]) call assert_equal('#include ', getline('.')) endfor diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -764,6 +764,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2295, +/**/ 2294, /**/ 2293,