mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
vim-patch:9.0.1893: CI: strptime test fails on BSD14
Problem: CI: strptime test fails on BSD14
Solution: Skip the test
983d808674
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -100,6 +100,14 @@ func CheckLinux()
|
||||
endif
|
||||
endfunc
|
||||
|
||||
" Command to check for not running on a BSD system.
|
||||
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()
|
||||
|
@@ -290,6 +290,7 @@ endfunc
|
||||
|
||||
func Test_strptime()
|
||||
CheckFunction strptime
|
||||
CheckNotBSD
|
||||
CheckNotMSWindows
|
||||
|
||||
if exists('$TZ')
|
||||
@@ -305,6 +306,8 @@ func Test_strptime()
|
||||
|
||||
call assert_fails('call strptime()', 'E119:')
|
||||
call assert_fails('call strptime("xxx")', 'E119:')
|
||||
" This fails on BSD 14 and returns
|
||||
" -2209078800 instead of 0
|
||||
call assert_equal(0, strptime("%Y", ''))
|
||||
call assert_equal(0, strptime("%Y", "xxx"))
|
||||
|
||||
|
Reference in New Issue
Block a user