aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-04-19 10:24:31 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-04-19 11:29:35 +0800
commitc4c5bcd2b250808e9465d5a403b6749042d077b1 (patch)
tree5f0cc330cae02fb416da5619cc8cbd1b0b8269b1
parentdb6812c4445545a01b92aa803fa5d6e9085bd3b4 (diff)
downloadrneovim-c4c5bcd2b250808e9465d5a403b6749042d077b1.tar.gz
rneovim-c4c5bcd2b250808e9465d5a403b6749042d077b1.tar.bz2
rneovim-c4c5bcd2b250808e9465d5a403b6749042d077b1.zip
vim-patch:9.0.0372: MS-Windows: "%T" time format does not appear to work
Problem: MS-Windows: "%T" time format does not appear to work. Solution: Use "%H:%M:%S" instead. https://github.com/vim/vim/commit/5fbbec180b623cd6ebfc9528be6fa70b4cf664d4 Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r--test/old/testdir/runtest.vim4
-rw-r--r--test/old/testdir/shared.vim2
2 files changed, 3 insertions, 3 deletions
diff --git a/test/old/testdir/runtest.vim b/test/old/testdir/runtest.vim
index 9ba0af1764..bc166024d3 100644
--- a/test/old/testdir/runtest.vim
+++ b/test/old/testdir/runtest.vim
@@ -434,7 +434,7 @@ for g:testfunc in sort(s:tests)
" A test can set g:test_is_flaky to retry running the test.
let g:test_is_flaky = 0
- let starttime = strftime("%T")
+ let starttime = strftime("%H:%M:%S")
call RunTheTest(g:testfunc)
" Repeat a flaky test. Give up when:
@@ -469,7 +469,7 @@ for g:testfunc in sort(s:tests)
let v:errors = []
let g:run_nr += 1
- let starttime = strftime("%T")
+ let starttime = strftime("%H:%M:%S")
call RunTheTest(g:testfunc)
if len(v:errors) == 0
diff --git a/test/old/testdir/shared.vim b/test/old/testdir/shared.vim
index 70a3ab7eee..35ff434d40 100644
--- a/test/old/testdir/shared.vim
+++ b/test/old/testdir/shared.vim
@@ -113,7 +113,7 @@ func RunServer(cmd, testfunc, args)
" Wait for some time for the port number to be there.
let port = GetPort()
if port == 0
- call assert_report(strftime("%T") .. " Can't start " .. a:cmd)
+ call assert_report(strftime("%H:%M:%S") .. " Can't start " .. a:cmd)
return
endif