Mercurial > vim
diff src/testdir/test_writefile.vim @ 24164:2259c73cc1d9 v8.2.2623
patch 8.2.2623: some tests fail when run as root
Commit: https://github.com/vim/vim/commit/17709e280ac5ba234b04641cde88d38e3522cedf
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Mar 19 14:38:12 2021 +0100
patch 8.2.2623: some tests fail when run as root
Problem: Some tests fail when run as root.
Solution: Use CheckNotRoot.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 19 Mar 2021 14:45:04 +0100 |
parents | eeb5518a37aa |
children | 9f48b262539b |
line wrap: on
line diff
--- a/src/testdir/test_writefile.vim +++ b/src/testdir/test_writefile.vim @@ -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--')