0
0
mirror of https://github.com/vim/vim.git synced 2025-10-18 07:54:29 -04:00

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

@@ -1704,9 +1704,10 @@ func Test_edit_charconvert()
endfunc
" Test for editing a file without read permission
" NOTE: if you run tests as root this will fail. Don't run tests as root!
func Test_edit_file_no_read_perm()
CheckUnix
CheckNotRoot
call writefile(['one', 'two'], 'Xfile')
call setfperm('Xfile', '-w-------')
new