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:
@@ -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
|
||||
|
Reference in New Issue
Block a user