# HG changeset patch # User Christian Brabandt # Date 1534961708 -7200 # Node ID 73001276abce2982a7771d1c267396d53fe4b457 # Parent bde787e80383ce02e00ad3afb0a8fdd232710459 patch 8.1.0317: Cscope test fails when using shadow directory commit https://github.com/vim/vim/commit/320bf2d85e9e2924d896b3072979598c954922e7 Author: Bram Moolenaar Date: Wed Aug 22 20:06:26 2018 +0200 patch 8.1.0317: Cscope test fails when using shadow directory Problem: Cscope test fails when using shadow directory. Solution: Resolve symlink in Vim. (James McCoy, closes https://github.com/vim/vim/issues/3364) 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 @@ -259,7 +259,12 @@ endfunc " Test ":cs add {dir}" (add the {dir}/cscope.out database) func Test_cscope_add_dir() call mkdir('Xcscopedir', 'p') - call system('cscope -bk -fXcscopedir/cscope.out ../memfile_test.c') + + " Cscope doesn't handle symlinks, so this needs to be resolved in case a + " shadow directory is being used. + let memfile = resolve('../memfile_test.c') + call system('cscope -bk -fXcscopedir/cscope.out ' . memfile) + cs add Xcscopedir let a = execute('cscope show') let lines = split(a, "\n", 1) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -795,6 +795,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 317, +/**/ 316, /**/ 315,