comparison src/testdir/test_autocmd.vim @ 29126:4385dfed5b29 v8.2.5083

patch 8.2.5083: autocmd test still fails on MS-Windows Commit: https://github.com/vim/vim/commit/db77c49401145d76441fbb3d22a1d7d987681c13 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 12 23:26:50 2022 +0100 patch 8.2.5083: autocmd test still fails on MS-Windows Problem: Autocmd test still fails on MS-Windows. Solution: Change backward to forward slashes.
author Bram Moolenaar <Bram@vim.org>
date Mon, 13 Jun 2022 00:30:02 +0200
parents bed794d67f72
children 87da4bab5aaa
comparison
equal deleted inserted replaced
29125:861153139f9b 29126:4385dfed5b29
2106 call chdir(s:dir_foo) 2106 call chdir(s:dir_foo)
2107 call assert_equal(expected, s:li) 2107 call assert_equal(expected, s:li)
2108 exe 'lcd ' .. fnameescape(s:dir_bar) 2108 exe 'lcd ' .. fnameescape(s:dir_bar)
2109 call assert_equal(expected, s:li) 2109 call assert_equal(expected, s:li)
2110 2110
2111 let save_shellslash = &shellslash
2112 set shellslash
2113 exe 'cd ' .. s:dir_foo 2111 exe 'cd ' .. s:dir_foo
2114 exe 'cd ' .. s:dir_bar 2112 exe 'cd ' .. s:dir_bar
2115 autocmd! test_dirchanged DirChanged global let g:result = expand("<afile>") 2113 autocmd! test_dirchanged DirChanged global let g:result = expand("<afile>")
2116 cd - 2114 cd -
2117 call assert_equal(s:dir_foo, g:result) 2115 call assert_equal(s:dir_foo, substitute(g:result, '\\', '/', 'g'))
2118 2116
2119 let &shellslash = save_shellslash
2120 call s:After_test_dirchanged() 2117 call s:After_test_dirchanged()
2121 endfunc 2118 endfunc
2122 2119
2123 function Test_dirchanged_local() 2120 function Test_dirchanged_local()
2124 call s:Before_test_dirchanged() 2121 call s:Before_test_dirchanged()