Mercurial > vim
view src/testdir/test_autochdir.vim @ 18070:873068e19e1f v8.1.2030
patch 8.1.2030: tests fail when build with normal features and terminal
Commit: https://github.com/vim/vim/commit/997d42427eaab889058eb047e08d55de9e4a968a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 14 21:23:40 2019 +0200
patch 8.1.2030: tests fail when build with normal features and terminal
Problem: Tests fail when build with normal features and terminal.
(Dominique Pelle)
Solution: Disable tests that won't work. (closes #4932)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 14 Sep 2019 21:30:03 +0200 |
parents | 0da9bc55c31a |
children | 26a04a556982 |
line wrap: on
line source
" Test 'autochdir' behavior source check.vim CheckOption autochdir func Test_set_filename() let cwd = getcwd() call test_autochdir() set acd let s:li = [] autocmd DirChanged auto call add(s:li, "autocd") autocmd DirChanged auto call add(s:li, expand("<afile>")) new w samples/Xtest call assert_equal("Xtest", expand('%')) call assert_equal("samples", substitute(getcwd(), '.*/\(\k*\)', '\1', '')) call assert_equal(["autocd", getcwd()], s:li) bwipe! au! DirChanged set noacd exe 'cd ' . cwd call delete('samples/Xtest') endfunc