vim-patch:7.4.2295

Problem:    Cscope test fails.
Solution:   Avoid checking for specific line and column numbers.

4792255eff
This commit is contained in:
rover
2017-01-07 20:08:38 +08:00
committed by James McCoy
parent 40a306fe90
commit 971d0590be
2 changed files with 6 additions and 3 deletions

View File

@@ -97,7 +97,7 @@ func Test_cscopeWithCscopeConnections()
for cmd in ['cs find f Xmemfile_test.c', 'cs find 7 Xmemfile_test.c'] for cmd in ['cs find f Xmemfile_test.c', 'cs find 7 Xmemfile_test.c']
enew enew
let a=execute(cmd) 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', @%) call assert_equal('Xmemfile_test.c', @%)
endfor endfor
@@ -105,7 +105,10 @@ func Test_cscopeWithCscopeConnections()
for cmd in ['cs find i assert.h', 'cs find 8 assert.h'] for cmd in ['cs find i assert.h', 'cs find 8 assert.h']
enew enew
let a=execute(cmd) 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('.')) call assert_equal('#include <assert.h>', getline('.'))
endfor endfor

View File

@@ -145,7 +145,7 @@ static int included_patches[] = {
// 2298 NA // 2298 NA
// 2297 NA // 2297 NA
// 2296, // 2296,
// 2295, 2295,
2294, 2294,
// 2293, // 2293,
// 2292, // 2292,