patch 9.0.1893: CI: strptime test fails on BSD14

Commit: 
https://github.com/vim/vim/commit/983d808674f998eaea12b302028de45f1c6857cd
Author: Christian Brabandt <[email protected]>
Date:   Sun Sep 10 19:06:09 2023 +0200

    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 <[email protected]>

diff --git a/src/testdir/test_functions.vim b/src/testdir/test_functions.vim
index b14c5413f..2ed7eb7f7 100644
--- a/src/testdir/test_functions.vim
+++ b/src/testdir/test_functions.vim
@@ -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"))
 
diff --git a/src/testdir/test_vim9_builtin.vim 
b/src/testdir/test_vim9_builtin.vim
index dc5f3362b..0d246a242 100644
--- a/src/testdir/test_vim9_builtin.vim
+++ b/src/testdir/test_vim9_builtin.vim
@@ -4343,10 +4343,13 @@ enddef
 
 def Test_strptime()
   CheckFunction strptime
+  CheckNotBSD
   if exists_compiled('*strptime')
     v9.CheckDefAndScriptFailure(['strptime(10, "2021")'], ['E1013: Argument 1: 
type mismatch, expected string but got number', 'E1174: String required for 
argument 1'])
     v9.CheckDefAndScriptFailure(['strptime("%Y", 2021)'], ['E1013: Argument 2: 
type mismatch, expected string but got number', 'E1174: String required for 
argument 2'])
     assert_notequal(0, strptime('%Y', '2021'))
+    # This fails on BSD 14 and returns 
+    # -2209078800 instead of 0
     assert_equal(0, strptime('%Y', ''))
   endif
 enddef
diff --git a/src/version.c b/src/version.c
index 40f7fe944..ba7ea3970 100644
--- a/src/version.c
+++ b/src/version.c
@@ -699,6 +699,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1893,
 /**/
     1892,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1qfO1W-006NoB-W5%40256bit.org.

Raspunde prin e-mail lui