diff options
author | Daniel Hahler <git@thequod.de> | 2019-09-18 22:40:06 +0200 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2019-09-18 22:46:47 +0200 |
commit | 48b2d21d5ea328089a2e8fb3798aa93d1a15a388 (patch) | |
tree | 910c0643e90593a37873329d828b8bac34b17cf5 | |
parent | 10c050caf99df7324f84b4595e8fd1db7f7a2c10 (diff) | |
download | rneovim-48b2d21d5ea328089a2e8fb3798aa93d1a15a388.tar.gz rneovim-48b2d21d5ea328089a2e8fb3798aa93d1a15a388.tar.bz2 rneovim-48b2d21d5ea328089a2e8fb3798aa93d1a15a388.zip |
vim-patch:8.1.1213: "make clean" in top dir does not cleanup indent test output
Problem: "make clean" in top dir does not cleanup indent test output.
Solution: Clean the indent test output. Do not rely on the vim executable
for that. (closes vim/vim#4307)
https://github.com/vim/vim/commit/e13a3901cae0afb4d2af30d497696af08029fd81
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | runtime/indent/Makefile | 2 | ||||
-rw-r--r-- | runtime/indent/testdir/cleantest.vim | 11 |
3 files changed, 2 insertions, 12 deletions
@@ -158,6 +158,7 @@ clean: +test -d build && $(BUILD_CMD) -C build clean || true $(MAKE) -C src/nvim/testdir clean $(MAKE) -C runtime/doc clean + $(MAKE) -C runtime/indent clean distclean: rm -rf $(DEPS_BUILD_DIR) build diff --git a/runtime/indent/Makefile b/runtime/indent/Makefile index 1917e46c6b..d192605527 100644 --- a/runtime/indent/Makefile +++ b/runtime/indent/Makefile @@ -11,4 +11,4 @@ test: clean: - VIMRUNTIME=$(VIMRUNTIME) $(VIM) --clean --not-a-term -u testdir/cleantest.vim + rm -f testdir/*.fail testdir/*.out diff --git a/runtime/indent/testdir/cleantest.vim b/runtime/indent/testdir/cleantest.vim deleted file mode 100644 index 69c0a1d4ba..0000000000 --- a/runtime/indent/testdir/cleantest.vim +++ /dev/null @@ -1,11 +0,0 @@ -" Only do this with the +eval feature -if 1 - - " Deletes all the test output files: *.fail and *.out - for fname in glob('testdir/*.out', 1, 1) + glob('testdir/*.fail', 1, 1) - call delete(fname) - endfor - -endif - -quit |