comparison src/testdir/test_stat.vim @ 21765:08940efa6b4e v8.2.1432

patch 8.2.1432: various inconsistencies in test files Commit: https://github.com/vim/vim/commit/6d91bcb4d23b5c6a0be72c384beaf385e2d9d606 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 12 18:50:36 2020 +0200 patch 8.2.1432: various inconsistencies in test files Problem: Various inconsistencies in test files. Solution: Add modelines where they were missing. Use Check commands instead of silently skipping over tests. Adjust indents and comments. (Ken Takata, closes #6695)
author Bram Moolenaar <Bram@vim.org>
date Wed, 12 Aug 2020 19:00:08 +0200
parents 2ef19eed524a
children d7e1cf30728c
comparison
equal deleted inserted replaced
21764:476b6faad407 21765:08940efa6b4e
1 " Tests for stat functions and checktime 1 " Tests for stat functions and checktime
2
3 source check.vim
2 4
3 func CheckFileTime(doSleep) 5 func CheckFileTime(doSleep)
4 let fnames = ['Xtest1.tmp', 'Xtest2.tmp', 'Xtest3.tmp'] 6 let fnames = ['Xtest1.tmp', 'Xtest2.tmp', 'Xtest3.tmp']
5 let times = [] 7 let times = []
6 let result = 0 8 let result = 0
175 endfunc 177 endfunc
176 178
177 func Test_win32_symlink_dir() 179 func Test_win32_symlink_dir()
178 " On Windows, non-admin users cannot create symlinks. 180 " On Windows, non-admin users cannot create symlinks.
179 " So we use an existing symlink for this test. 181 " So we use an existing symlink for this test.
180 if has('win32') 182 CheckMSWindows
181 " Check if 'C:\Users\All Users' is a symlink to a directory. 183 " Check if 'C:\Users\All Users' is a symlink to a directory.
182 let res = system('dir C:\Users /a') 184 let res = system('dir C:\Users /a')
183 if match(res, '\C<SYMLINKD> *All Users') >= 0 185 if match(res, '\C<SYMLINKD> *All Users') >= 0
184 " Get the filetype of the symlink. 186 " Get the filetype of the symlink.
185 call assert_equal('dir', getftype('C:\Users\All Users')) 187 call assert_equal('dir', getftype('C:\Users\All Users'))
186 endif 188 else
189 throw 'Skipped: cannot find an existing symlink'
187 endif 190 endif
188 endfunc 191 endfunc
192
193 " vim: shiftwidth=2 sts=2 expandtab