To: vim_dev@googlegroups.com Subject: Patch 8.2.2570 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2570 Problem: Tests fail when run as root. Solution: Add a comment mentioning the expected failure. (issue #7919) Files: src/testdir/test_edit.vim, src/testdir/test_excmd.vim, src/testdir/test_help.vim, src/testdir/test_writefile.vim *** ../vim-8.2.2569/src/testdir/test_edit.vim 2021-02-20 19:21:31.955986987 +0100 --- src/testdir/test_edit.vim 2021-03-05 20:43:11.770113155 +0100 *************** *** 1704,1709 **** --- 1704,1710 ---- 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') *** ../vim-8.2.2569/src/testdir/test_excmd.vim 2021-02-06 12:58:13.623634848 +0100 --- src/testdir/test_excmd.vim 2021-03-05 20:45:21.605939687 +0100 *************** *** 333,338 **** --- 333,339 ---- 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:') *** ../vim-8.2.2569/src/testdir/test_help.vim 2020-02-17 22:39:32.072004567 +0100 --- src/testdir/test_help.vim 2021-03-05 20:46:03.441877467 +0100 *************** *** 74,79 **** --- 74,80 ---- 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') *** ../vim-8.2.2569/src/testdir/test_writefile.vim 2020-12-23 22:40:08.135122598 +0100 --- src/testdir/test_writefile.vim 2021-03-05 20:46:44.773813152 +0100 *************** *** 406,411 **** --- 406,412 ---- 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 *** ../vim-8.2.2569/src/version.c 2021-03-04 21:55:54.605235257 +0100 --- src/version.c 2021-03-05 20:47:10.797771361 +0100 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2570, /**/ -- (letter from Mark to Mike, about the film's probable certificate) I would like to get back to the Censor and agree to lose the shits, take the odd Jesus Christ out and lose Oh fuck off, but to retain 'fart in your general direction', 'castanets of your testicles' and 'oral sex' and ask him for an 'A' rating on that basis. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///