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_edit.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_edit.vim')
| -rw-r--r-- | src/nvim/testdir/test_edit.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_edit.vim b/src/nvim/testdir/test_edit.vim index bd7b5609a5..dc850515b0 100644 --- a/src/nvim/testdir/test_edit.vim +++ b/src/nvim/testdir/test_edit.vim @@ -1834,9 +1834,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 |