mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge pull request #25093 from zeertzjq/vim-9.0.1893
vim-patch:9.0.{1893,1894}
This commit is contained in:
commit
c8c73b26f3
@ -100,6 +100,14 @@ func CheckLinux()
|
|||||||
endif
|
endif
|
||||||
endfunc
|
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.
|
" Command to check that making screendumps is supported.
|
||||||
" Caller must source screendump.vim
|
" Caller must source screendump.vim
|
||||||
command CheckScreendump call CheckScreendump()
|
command CheckScreendump call CheckScreendump()
|
||||||
|
@ -290,6 +290,7 @@ endfunc
|
|||||||
|
|
||||||
func Test_strptime()
|
func Test_strptime()
|
||||||
CheckFunction strptime
|
CheckFunction strptime
|
||||||
|
CheckNotBSD
|
||||||
CheckNotMSWindows
|
CheckNotMSWindows
|
||||||
|
|
||||||
if exists('$TZ')
|
if exists('$TZ')
|
||||||
@ -305,6 +306,8 @@ func Test_strptime()
|
|||||||
|
|
||||||
call assert_fails('call strptime()', 'E119:')
|
call assert_fails('call strptime()', 'E119:')
|
||||||
call assert_fails('call strptime("xxx")', '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", ''))
|
||||||
call assert_equal(0, strptime("%Y", "xxx"))
|
call assert_equal(0, strptime("%Y", "xxx"))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user