mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 9.0.1893: CI: strptime test fails on BSD14
Problem: CI: strptime test fails on BSD14 Solution: Skip the test Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -300,6 +300,7 @@ endfunc
|
||||
|
||||
func Test_strptime()
|
||||
CheckFunction strptime
|
||||
CheckNotBSD
|
||||
|
||||
if exists('$TZ')
|
||||
let tz = $TZ
|
||||
@@ -314,6 +315,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