diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-11-07 06:18:16 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-07 06:18:16 +0800 |
| commit | 08d53633d41063f2d14ea7713edc70620ce1fcc4 (patch) | |
| tree | 0d1388abf2b3885805d29f3e619a051c187fae3c /src/nvim/testdir/test_writefile.vim | |
| parent | 16eed6e7663afccfe36fd8c0301927fd1858c5c8 (diff) | |
| parent | 8c454776f8a1d030b326347e1dd2d4e1fd6d7f7f (diff) | |
| download | rneovim-08d53633d41063f2d14ea7713edc70620ce1fcc4.tar.gz rneovim-08d53633d41063f2d14ea7713edc70620ce1fcc4.tar.bz2 rneovim-08d53633d41063f2d14ea7713edc70620ce1fcc4.zip | |
Merge pull request #20968 from zeertzjq/vim-8.2.2570
vim-patch:8.2.{2570,2623,2627,4495}: tests fail when run as root
Diffstat (limited to 'src/nvim/testdir/test_writefile.vim')
| -rw-r--r-- | src/nvim/testdir/test_writefile.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_writefile.vim b/src/nvim/testdir/test_writefile.vim index e4950de658..a7ebe8cde6 100644 --- a/src/nvim/testdir/test_writefile.vim +++ b/src/nvim/testdir/test_writefile.vim @@ -419,9 +419,13 @@ func Test_patchmode() endfunc " Test for writing to a file in a readonly directory +" NOTE: if you run tests as root this will fail. Don't run tests as root! 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--') |