Mercurial > vim
comparison src/testdir/test_functions.vim @ 17137:ca4e6685e2f4 v8.1.1568
patch 8.1.1568: strftime() test fails on MS-Windows
commit https://github.com/vim/vim/commit/87652a7e3b94755084944afec51a0bfcd8b0a0c3
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jun 18 23:07:37 2019 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 18 Jun 2019 23:15:06 +0200 |
parents | d03a52e02f1a |
children | 6990c1160ea5 |
comparison
equal
deleted
inserted
replaced
17136:d173bf03e8dd | 17137:ca4e6685e2f4 |
---|---|
200 | 200 |
201 " Those hours should be two bytes long, and should not be the same; if they | 201 " Those hours should be two bytes long, and should not be the same; if they |
202 " are, a tzset(3) call may have failed somewhere | 202 " are, a tzset(3) call may have failed somewhere |
203 call assert_equal(strlen(est), 2) | 203 call assert_equal(strlen(est), 2) |
204 call assert_equal(strlen(utc), 2) | 204 call assert_equal(strlen(utc), 2) |
205 call assert_notequal(est, utc) | 205 " TODO: this fails on MS-Windows |
206 if has('unix') | |
207 call assert_notequal(est, utc) | |
208 endif | |
206 | 209 |
207 " If we cached a timezone value, put it back, otherwise clear it | 210 " If we cached a timezone value, put it back, otherwise clear it |
208 if exists('tz') | 211 if exists('tz') |
209 let $TZ = tz | 212 let $TZ = tz |
210 else | 213 else |