Mercurial > vim
comparison src/testdir/test_normal.vim @ 18736:97d534e17874 v8.1.2358
patch 8.1.2358: tests fail on Cirrus CI for FreeBSD
Commit: https://github.com/vim/vim/commit/9134f1ecd41207045db3cb47f0269497980395ad
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Nov 29 20:26:13 2019 +0100
patch 8.1.2358: tests fail on Cirrus CI for FreeBSD
Problem: Tests fail on Cirrus CI for FreeBSD.
Solution: Fix a test and skip some. (Christian Brabandt, closes https://github.com/vim/vim/issues/5281)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 29 Nov 2019 20:30:05 +0100 |
parents | 2faf6c331cb8 |
children | 068337e86133 |
comparison
equal
deleted
inserted
replaced
18735:802cf4ddafb6 | 18736:97d534e17874 |
---|---|
1202 let &keywordprg = k | 1202 let &keywordprg = k |
1203 bw! | 1203 bw! |
1204 return | 1204 return |
1205 endif | 1205 endif |
1206 | 1206 |
1207 if has('mac') || has('bsd') | 1207 let not_gnu_man = has('mac') || has('bsd') |
1208 if not_gnu_man | |
1208 " In MacOS and BSD, the option for specifying a pager is different | 1209 " In MacOS and BSD, the option for specifying a pager is different |
1209 set keywordprg=man\ -P\ cat | 1210 set keywordprg=man\ -P\ cat |
1210 else | 1211 else |
1211 set keywordprg=man\ --pager=cat | 1212 set keywordprg=man\ --pager=cat |
1212 endif | 1213 endif |
1213 " Test for using man | 1214 " Test for using man |
1214 2 | 1215 2 |
1215 let a = execute('unsilent norm! K') | 1216 let a = execute('unsilent norm! K') |
1216 if has('mac') | 1217 if not_gnu_man |
1217 call assert_match("man -P cat 'man'", a) | 1218 call assert_match("man -P cat 'man'", a) |
1218 else | 1219 else |
1219 call assert_match("man --pager=cat 'man'", a) | 1220 call assert_match("man --pager=cat 'man'", a) |
1220 endif | 1221 endif |
1221 | 1222 |