Mercurial > vim
comparison src/testdir/test_autocmd.vim @ 13178:f83d3a633ccb v8.0.1463
patch 8.0.1463: test fails without 'autochdir' option
commit https://github.com/vim/vim/commit/ec48a9c58989babcad23d73483955f35b6e41492
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 3 20:11:40 2018 +0100
patch 8.0.1463: test fails without 'autochdir' option
Problem: Test fails without 'autochdir' option.
Solution: Skip test if 'autochdir' is not supported.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 03 Feb 2018 20:15:05 +0100 |
parents | 6559e98f3e74 |
children | 5ed6e4a25925 |
comparison
equal
deleted
inserted
replaced
13177:2beee18bca84 | 13178:f83d3a633ccb |
---|---|
1230 call assert_equal(["lcd:", s:dir_other], s:li) | 1230 call assert_equal(["lcd:", s:dir_other], s:li) |
1231 call s:After_test_dirchanged() | 1231 call s:After_test_dirchanged() |
1232 endfunc | 1232 endfunc |
1233 | 1233 |
1234 function Test_dirchanged_auto() | 1234 function Test_dirchanged_auto() |
1235 if !exists('+autochdir') | |
1236 return | |
1237 endif | |
1235 call s:Before_test_dirchanged() | 1238 call s:Before_test_dirchanged() |
1236 call test_autochdir() | 1239 call test_autochdir() |
1237 autocmd test_dirchanged DirChanged auto call add(s:li, "auto:") | 1240 autocmd test_dirchanged DirChanged auto call add(s:li, "auto:") |
1238 autocmd test_dirchanged DirChanged auto call add(s:li, expand("<afile>")) | 1241 autocmd test_dirchanged DirChanged auto call add(s:li, expand("<afile>")) |
1239 set acd | 1242 set acd |