From 423f3bc3e2d6aa8245a2cda1c4e7663387383ab7 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sat, 27 Mar 2021 10:55:11 -0400 Subject: [PATCH] test/old: skip Test_strptime() on Windows POSIX strptime does not exist in Windows. There is a C++ workaround but I don't know how to use it. Julia ported BSD's "strptime()" but I can't compile the file or embed the relevant code into src/nvim/os/time.c I cannot use "#ifdef" in eval.lua because of function hashing. "#ifdef" is required to point "strptime()" to NULL such that "CheckFunction strptime" fails. --- src/nvim/testdir/test_functions.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nvim/testdir/test_functions.vim b/src/nvim/testdir/test_functions.vim index 145da3070b..555f549743 100644 --- a/src/nvim/testdir/test_functions.vim +++ b/src/nvim/testdir/test_functions.vim @@ -217,6 +217,7 @@ endfunc func Test_strptime() CheckFunction strptime + CheckNotMSWindows if exists('$TZ') let tz = $TZ