neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 9b43dcdbff4fd9418a66a4b356e3cb8a11762971
parent 843c9025ae8b44b14d0908674c8874a51dc13a38
Author: Lewis Russell <lewis6991@gmail.com>
Date:   Fri, 27 Jan 2023 09:48:00 +0000

fix(test): unset XDG_CONFIG_HOME when running oldtest

- also fix test_taglist.vim for users running with a tags file created
  in runtime/doc
Diffstat:
Msrc/nvim/testdir/runnvim.sh | 3+++
Msrc/nvim/testdir/test_taglist.vim | 4++--
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/nvim/testdir/runnvim.sh b/src/nvim/testdir/runnvim.sh @@ -30,6 +30,9 @@ main() {( . "$CI_DIR/common/suite.sh" . "$CI_DIR/common/test.sh" + # Redirect XDG_CONFIG_HOME so users local config doesn't interfere + export XDG_CONFIG_HOME="$root" + export VIMRUNTIME="$root/runtime" if ! "$nvim_prg" \ -u NONE -i NONE \ diff --git a/src/nvim/testdir/test_taglist.vim b/src/nvim/testdir/test_taglist.vim @@ -105,8 +105,8 @@ func Test_tagfiles() help let tf = tagfiles() " Nvim: expectation(s) based on tags in build dir (added to &rtp). - " Filter out the (non-existing) '../../../runtime/doc/tags'. - call filter(tf, 'filereadable(v:val)') + " Filter out the '../../../runtime/doc/tags'. + call filter(tf, 'v:val != "../../../runtime/doc/tags"') call assert_equal(1, len(tf)) call assert_equal(fnamemodify(expand('$BUILD_DIR/runtime/doc/tags'), ':p:gs?\\?/?'), \ fnamemodify(tf[0], ':p:gs?\\?/?'))