aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-03-29 14:17:52 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-03-29 14:17:57 -0400
commit53fdd76181d2d1834aa38f4b47aa36f844d1e43f (patch)
tree39d782324f9b1f4ffadce2231f588dd93a14f72d
parent10c5434f9c1219d480fd07e711838e22dc912bba (diff)
downloadrneovim-53fdd76181d2d1834aa38f4b47aa36f844d1e43f.tar.gz
rneovim-53fdd76181d2d1834aa38f4b47aa36f844d1e43f.tar.bz2
rneovim-53fdd76181d2d1834aa38f4b47aa36f844d1e43f.zip
vim-patch:8.1.1568: strftime() test fails on MS-Windows
Problem: Strftime() test fails on MS-Windows. Solution: Skip the check for using the $TZ environment variable. https://github.com/vim/vim/commit/87652a7e3b94755084944afec51a0bfcd8b0a0c3
-rw-r--r--src/nvim/testdir/test_functions.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_functions.vim b/src/nvim/testdir/test_functions.vim
index da5edbaea1..b75b095841 100644
--- a/src/nvim/testdir/test_functions.vim
+++ b/src/nvim/testdir/test_functions.vim
@@ -201,7 +201,10 @@ func Test_strftime()
" are, a tzset(3) call may have failed somewhere
call assert_equal(strlen(est), 2)
call assert_equal(strlen(utc), 2)
- call assert_notequal(est, utc)
+ " TODO: this fails on MS-Windows
+ if has('unix')
+ call assert_notequal(est, utc)
+ endif
" If we cached a timezone value, put it back, otherwise clear it
if exists('tz')