diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-06 22:15:33 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-11-06 23:08:40 +0800 |
commit | df71537a12e454075e02824bb8f570e1e838ee64 (patch) | |
tree | a706528600094c4ca8181994d1cc26c21ec55c60 | |
parent | de500095b1adc675999315e70307b3425dca089c (diff) | |
download | rneovim-df71537a12e454075e02824bb8f570e1e838ee64.tar.gz rneovim-df71537a12e454075e02824bb8f570e1e838ee64.tar.bz2 rneovim-df71537a12e454075e02824bb8f570e1e838ee64.zip |
vim-patch:8.2.2570: tests fail when run as root
Problem: Tests fail when run as root.
Solution: Add a comment mentioning the expected failure. (issue vim/vim#7919)
https://github.com/vim/vim/commit/f9a65505d1d93f3e67e5b8646bde3bbc44c70f7d
Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r-- | src/nvim/testdir/test_edit.vim | 1 | ||||
-rw-r--r-- | src/nvim/testdir/test_excmd.vim | 1 | ||||
-rw-r--r-- | src/nvim/testdir/test_help.vim | 1 | ||||
-rw-r--r-- | src/nvim/testdir/test_writefile.vim | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_edit.vim b/src/nvim/testdir/test_edit.vim index 4994e7af8f..bd7b5609a5 100644 --- a/src/nvim/testdir/test_edit.vim +++ b/src/nvim/testdir/test_edit.vim @@ -1834,6 +1834,7 @@ 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 call writefile(['one', 'two'], 'Xfile') diff --git a/src/nvim/testdir/test_excmd.vim b/src/nvim/testdir/test_excmd.vim index 582dcaac2c..91fdb23a63 100644 --- a/src/nvim/testdir/test_excmd.vim +++ b/src/nvim/testdir/test_excmd.vim @@ -476,6 +476,7 @@ func Test_winsize_cmd() endfunc " Test for the :redir command +" NOTE: if you run tests as root this will fail. Don't run tests as root! func Test_redir_cmd() call assert_fails('redir @@', 'E475:') call assert_fails('redir abc', 'E475:') diff --git a/src/nvim/testdir/test_help.vim b/src/nvim/testdir/test_help.vim index 19c0fcd820..5779cc6d11 100644 --- a/src/nvim/testdir/test_help.vim +++ b/src/nvim/testdir/test_help.vim @@ -98,6 +98,7 @@ func Test_help_completion() endfunc " Test for the :helptags command +" NOTE: if you run tests as root this will fail. Don't run tests as root! func Test_helptag_cmd() call mkdir('Xdir/a/doc', 'p') diff --git a/src/nvim/testdir/test_writefile.vim b/src/nvim/testdir/test_writefile.vim index e4950de658..738e66ea27 100644 --- a/src/nvim/testdir/test_writefile.vim +++ b/src/nvim/testdir/test_writefile.vim @@ -419,6 +419,7 @@ 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 |