forked from aniani/vim
patch 8.2.2623: some tests fail when run as root
Problem: Some tests fail when run as root. Solution: Use CheckNotRoot.
This commit is contained in:
@@ -410,6 +410,9 @@ endfunc
|
||||
func Test_write_readonly_dir()
|
||||
" On MS-Windows, modifying files in a read-only directory is allowed.
|
||||
CheckUnix
|
||||
" Root can do it too.
|
||||
CheckNotRoot
|
||||
|
||||
call mkdir('Xdir')
|
||||
call writefile(['one'], 'Xdir/Xfile1')
|
||||
call setfperm('Xdir', 'r-xr--r--')
|
||||
|
||||
Reference in New Issue
Block a user