]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1893: CI: strptime test fails on BSD14 v9.0.1893
authorChristian Brabandt <cb@256bit.org>
Sun, 10 Sep 2023 17:06:09 +0000 (19:06 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 10 Sep 2023 17:06:09 +0000 (19:06 +0200)
Problem:  CI: strptime test fails on BSD14
Solution: Skip the test

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_functions.vim
src/testdir/test_vim9_builtin.vim
src/version.c

index b14c5413f05a1c5c8d99344aa48ff8cfdaea9e44..2ed7eb7f701af6de16e4f9553c7a3c0d0a3ad4eb 100644 (file)
@@ -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"))
 
index dc5f3362b32047894dbcf61dafaa0299e3646b80..0d246a2427ce64a0ef8a8139932206915f5ec6b6 100644 (file)
@@ -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
index 40f7fe944c81539134bff48a8f1a7fadf760a550..ba7ea3970e9fb6880f9867453788a85972ad139b 100644 (file)
@@ -699,6 +699,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1893,
 /**/
     1892,
 /**/