diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-06-12 22:33:33 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-06-12 22:33:33 +0100 |
commit | 7c0d0c3c75151e716184397a41ff74ab0429db5a (patch) | |
tree | 7932e186d07ba3d29cbb21db361f40e4673a3628 /src/testdir/test_autocmd.vim | |
parent | 6ba83ba9ee292f68aa0b218b3eef42db31c0b632 (diff) |
patch 8.2.5081: autocmd test fails on MS-Windowsv8.2.5081
Problem: Autocmd test fails on MS-Windows.
Solution: Set shellslash to get forward slashes.
Diffstat (limited to 'src/testdir/test_autocmd.vim')
-rw-r--r-- | src/testdir/test_autocmd.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim index 15aab48a69..d0b5b5a4d5 100644 --- a/src/testdir/test_autocmd.vim +++ b/src/testdir/test_autocmd.vim @@ -2108,12 +2108,15 @@ function Test_dirchanged_global() exe 'lcd ' .. fnameescape(s:dir_bar) call assert_equal(expected, s:li) + let save_shellslash = &shellslash + set shellslash exe 'cd ' .. s:dir_foo exe 'cd ' .. s:dir_bar autocmd! test_dirchanged DirChanged global let g:result = expand("<afile>") cd - call assert_equal(s:dir_foo, g:result) + let &shellslash = save_shellslash call s:After_test_dirchanged() endfunc |