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:
Daniel Hahler
2019-08-30 07:10:21 +02:00
committed by GitHub
parent 7ad1d00eaa
commit 7732976918

View File

@@ -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')