diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-11-06 22:15:59 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-11-06 23:08:40 +0800 |
| commit | fbe2761b20afaf25a02c06decaf543d211e997f0 (patch) | |
| tree | 590c66ef9dc69e3f6f3e085818f03f56bb8578e1 /src/nvim/testdir/test_writefile.vim | |
| parent | df71537a12e454075e02824bb8f570e1e838ee64 (diff) | |
| download | rneovim-fbe2761b20afaf25a02c06decaf543d211e997f0.tar.gz rneovim-fbe2761b20afaf25a02c06decaf543d211e997f0.tar.bz2 rneovim-fbe2761b20afaf25a02c06decaf543d211e997f0.zip | |
vim-patch:8.2.2623: some tests fail when run as root
Problem: Some tests fail when run as root.
Solution: Use CheckNotRoot.
https://github.com/vim/vim/commit/17709e280ac5ba234b04641cde88d38e3522cedf
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/testdir/test_writefile.vim')
| -rw-r--r-- | src/nvim/testdir/test_writefile.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_writefile.vim b/src/nvim/testdir/test_writefile.vim index 738e66ea27..a7ebe8cde6 100644 --- a/src/nvim/testdir/test_writefile.vim +++ b/src/nvim/testdir/test_writefile.vim @@ -423,6 +423,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--') |