From 097c8dcccab1f66098e0096c7590ea4eb446dd56 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Wed, 4 Jan 2017 05:22:32 +0100 Subject: refactor: Remove VimL function `test_autochdir()` - Eliminate global test_autochdir. - Eliminate VimL function test_autochdir() - Use a lua test instead. Fails correctly after reverting 0c4347997954 / vim-patch:7.4.2015. --- src/nvim/testdir/Makefile | 1 - src/nvim/testdir/test_autochdir.vim | 17 ----------------- 2 files changed, 18 deletions(-) delete mode 100644 src/nvim/testdir/test_autochdir.vim (limited to 'src/nvim/testdir') diff --git a/src/nvim/testdir/Makefile b/src/nvim/testdir/Makefile index 5bb7fd1dda..612071e2e2 100644 --- a/src/nvim/testdir/Makefile +++ b/src/nvim/testdir/Makefile @@ -30,7 +30,6 @@ SCRIPTS := \ # Tests using runtest.vim.vim. # Keep test_alot*.res as the last one, sort the others. NEW_TESTS = \ - test_autochdir.res \ test_bufwintabinfo.res \ test_cmdline.res \ test_cscope.res \ diff --git a/src/nvim/testdir/test_autochdir.vim b/src/nvim/testdir/test_autochdir.vim deleted file mode 100644 index f52e2e668a..0000000000 --- a/src/nvim/testdir/test_autochdir.vim +++ /dev/null @@ -1,17 +0,0 @@ -" Test 'autochdir' behavior - -if !exists("+autochdir") - finish -endif - -func Test_set_filename() - call test_autochdir() - set acd - new - w samples/Xtest - call assert_equal("Xtest", expand('%')) - call assert_equal("samples", substitute(getcwd(), '.*/\(\k*\)', '\1', '')) - bwipe! - set noacd - call delete('samples/Xtest') -endfunc -- cgit