mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 18:36:30 +00:00
tests: fix Test_tagfiles: use Vim's 'tags' (#10883)
When run via `test_alot.vim` `Test_tagfiles` gets run after `set tags&`, and might therefore pick up "tags" from Neovim's source directory. This patch makes it use Vim's default always (which is different from Neovim's).
This commit is contained in:
@@ -80,6 +80,8 @@ func Test_tags_too_long()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_tagfiles()
|
func Test_tagfiles()
|
||||||
|
" Nvim: different default for 'tags'.
|
||||||
|
set tags=./tags,tags
|
||||||
call assert_equal([], tagfiles())
|
call assert_equal([], tagfiles())
|
||||||
|
|
||||||
call writefile(["FFoo\tXfoo\t1"], 'Xtags1')
|
call writefile(["FFoo\tXfoo\t1"], 'Xtags1')
|
||||||
|
Reference in New Issue
Block a user