summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-11-29 20:26:13 +0100
committerBram Moolenaar <Bram@vim.org>2019-11-29 20:26:13 +0100
commit9134f1ecd41207045db3cb47f0269497980395ad (patch)
tree8e9d1a099c603683cd365b0d70cc65f3b3a4247b
parent68e9e5f7fccb8038cf0ca5b5d95c85a923152f46 (diff)
patch 8.1.2358: tests fail on Cirrus CI for FreeBSDv8.1.2358
Problem: Tests fail on Cirrus CI for FreeBSD. Solution: Fix a test and skip some. (Christian Brabandt, closes #5281)
-rw-r--r--.cirrus.yml5
-rw-r--r--Filelist1
-rw-r--r--src/testdir/check.vim9
-rw-r--r--src/testdir/test_normal.vim5
-rw-r--r--src/testdir/test_quickfix.vim1
-rw-r--r--src/testdir/test_source_utf8.vim4
-rw-r--r--src/testdir/test_terminal.vim1
-rw-r--r--src/testdir/test_utf8_comparisons.vim5
-rw-r--r--src/version.c2
9 files changed, 28 insertions, 5 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index 2aae80e399..907d10eb4e 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -1,5 +1,5 @@
env:
- #CIRRUS_CLONE_DEPTH: 1
+ CIRRUS_CLONE_DEPTH: 3
FEATURES: huge
freebsd_12_task:
@@ -13,4 +13,5 @@ freebsd_12_task:
- make -j${NPROC}
- src/vim --version
test_script:
- - make test
+ # Runtime Indent tests do not work, run only the normal test suite
+ - cd src && make test
diff --git a/Filelist b/Filelist
index 604ff06eb6..b39eb6593f 100644
--- a/Filelist
+++ b/Filelist
@@ -8,6 +8,7 @@ SRC_ALL = \
.hgignore \
.lgtm.yml \
.travis.yml \
+ .cirrus.yml \
appveyor.yml \
ci/appveyor.bat \
src/Make_all.mak \
diff --git a/src/testdir/check.vim b/src/testdir/check.vim
index 6c3b1be4ff..30c415821f 100644
--- a/src/testdir/check.vim
+++ b/src/testdir/check.vim
@@ -64,6 +64,15 @@ func CheckUnix()
endif
endfunc
+" Command to check for not running on a BSD system.
+" TODO: using this checks should not be needed
+command CheckNotBSD call CheckNotBSD()
+func CheckNotBSD()
+ if has('bsd')
+ throw 'Skipped: does not work on BSD'
+ endif
+endfunc
+
" Command to check that making screendumps is supported.
" Caller must source screendump.vim
command CheckScreendump call CheckScreendump()
diff --git a/src/testdir/test_normal.vim b/src/testdir/test_normal.vim
index bbb9993866..a28a82540a 100644
--- a/src/testdir/test_normal.vim
+++ b/src/testdir/test_normal.vim
@@ -1204,7 +1204,8 @@ func Test_normal23_K()
return
endif
- if has('mac') || has('bsd')
+ let not_gnu_man = has('mac') || has('bsd')
+ if not_gnu_man
" In MacOS and BSD, the option for specifying a pager is different
set keywordprg=man\ -P\ cat
else
@@ -1213,7 +1214,7 @@ func Test_normal23_K()
" Test for using man
2
let a = execute('unsilent norm! K')
- if has('mac')
+ if not_gnu_man
call assert_match("man -P cat 'man'", a)
else
call assert_match("man --pager=cat 'man'", a)
diff --git a/src/testdir/test_quickfix.vim b/src/testdir/test_quickfix.vim
index 3a9e6720ec..d31650f263 100644
--- a/src/testdir/test_quickfix.vim
+++ b/src/testdir/test_quickfix.vim
@@ -1685,6 +1685,7 @@ func s:create_test_file(filename)
endfunc
func Test_switchbuf()
+ CheckNotBSD
call s:create_test_file('Xqftestfile1')
call s:create_test_file('Xqftestfile2')
call s:create_test_file('Xqftestfile3')
diff --git a/src/testdir/test_source_utf8.vim b/src/testdir/test_source_utf8.vim
index e93ea29dff..99cb09c50e 100644
--- a/src/testdir/test_source_utf8.vim
+++ b/src/testdir/test_source_utf8.vim
@@ -1,7 +1,10 @@
" Test the :source! command
+source check.vim
func Test_source_utf8()
" check that sourcing a script with 0x80 as second byte works
+ " does not work correctly on BSD
+ CheckNotBSD
new
call setline(1, [':%s/àx/--à1234--/g', ':%s/Àx/--À1234--/g'])
write! Xscript
@@ -31,6 +34,7 @@ endfunc
" Test for sourcing a file with CTRL-V's at the end of the line
func Test_source_ctrl_v()
+ CheckNotBSD
call writefile(['map __1 afirst',
\ 'map __2 asecond',
\ 'map __3 athird',
diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim
index 43a93847a9..fb810e7f78 100644
--- a/src/testdir/test_terminal.vim
+++ b/src/testdir/test_terminal.vim
@@ -870,6 +870,7 @@ func Test_terminal_wqall()
endfunc
func Test_terminal_composing_unicode()
+ CheckNotBSD
let save_enc = &encoding
set encoding=utf-8
diff --git a/src/testdir/test_utf8_comparisons.vim b/src/testdir/test_utf8_comparisons.vim
index 312925b3a6..f3c86b44fb 100644
--- a/src/testdir/test_utf8_comparisons.vim
+++ b/src/testdir/test_utf8_comparisons.vim
@@ -86,6 +86,9 @@ endfunc
" test that g~ap changes one paragraph only.
func Test_gap()
new
- call feedkeys("iabcd\n\ndefggg0g~ap", "tx")
+ " setup text
+ call feedkeys("iabcd\<cr>\<cr>defg", "tx")
+ " modify only first line
+ call feedkeys("gg0g~ap", "tx")
call assert_equal(["ABCD", "", "defg"], getline(1,3))
endfunc
diff --git a/src/version.c b/src/version.c
index d0638096f4..7318a6a6c4 100644
--- a/src/version.c
+++ b/src/version.c
@@ -738,6 +738,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2358,
+/**/
2357,
/**/
2356,