1
0
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:
Bram Moolenaar
2021-03-19 14:38:12 +01:00
parent a555e6fcb6
commit 17709e280a
5 changed files with 49 additions and 31 deletions

View File

@@ -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--')