comparison src/testdir/test_help.vim @ 19429:7096af834c42 v8.2.0272

patch 8.2.0272: ":helptags ALL" gives error for some directories Commit: https://github.com/vim/vim/commit/414b79662786762256e756ece8ab4aaecbbf9bd1 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 17 22:39:35 2020 +0100 patch 8.2.0272: ":helptags ALL" gives error for some directories Problem: ":helptags ALL" gives error for directories without write permission. (Mat?j Cepl) Solution: Ignore errors for ":helptags ALL". (Ken Takata, closes #5026, closes #5652)
author Bram Moolenaar <Bram@vim.org>
date Mon, 17 Feb 2020 22:45:03 +0100
parents 2f0f308c069c
children eeb5518a37aa
comparison
equal deleted inserted replaced
19428:1f9e7e703f24 19429:7096af834c42
88 call delete('Xdir/tags') 88 call delete('Xdir/tags')
89 89
90 " The following tests fail on FreeBSD for some reason 90 " The following tests fail on FreeBSD for some reason
91 if has('unix') && !has('bsd') 91 if has('unix') && !has('bsd')
92 " Read-only tags file 92 " Read-only tags file
93 call writefile([''], 'Xdir/tags') 93 call mkdir('Xdir/doc', 'p')
94 call setfperm('Xdir/tags', 'r-xr--r--') 94 call writefile([''], 'Xdir/doc/tags')
95 call assert_fails('helptags Xdir', 'E152:', getfperm('Xdir/tags')) 95 call writefile([], 'Xdir/doc/sample.txt')
96 call delete('Xdir/tags') 96 call setfperm('Xdir/doc/tags', 'r-xr--r--')
97 call assert_fails('helptags Xdir/doc', 'E152:', getfperm('Xdir/doc/tags'))
98
99 let rtp = &rtp
100 let &rtp = 'Xdir'
101 helptags ALL
102 let &rtp = rtp
103
104 call delete('Xdir/doc/tags')
97 105
98 " No permission to read the help file 106 " No permission to read the help file
99 call setfperm('Xdir/a/doc/sample.txt', '-w-------') 107 call setfperm('Xdir/a/doc/sample.txt', '-w-------')
100 call assert_fails('helptags Xdir', 'E153:', getfperm('Xdir/a/doc/sample.txt')) 108 call assert_fails('helptags Xdir', 'E153:', getfperm('Xdir/a/doc/sample.txt'))
101 call delete('Xdir/a/doc/sample.txt') 109 call delete('Xdir/a/doc/sample.txt')