From 14819d55fbca18ef70638cce38318fe6bc4b32dc Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 3 May 2026 07:06:39 +0800 Subject: [PATCH] vim-patch:9.2.0430: tests: Test_shortmess_F3() is flaky on MS-Windows Problem: tests: Test_shortmess_F3() is flaky on MS-Windows Solution: Increase the sleep to 3s (Yasuhiro Matsumoto) On MS-Windows time_differs() treats mtime as unchanged unless st_mtime differs by more than 1 second, so a 2-second sleep can fall short when the two writes straddle a second boundary. Bump the non-nanotime sleep to 3 seconds. closes: vim/vim#20117 https://github.com/vim/vim/commit/2219c890136f4c809ca4fa64d357ae46442bfa92 Co-authored-by: Yasuhiro Matsumoto --- test/old/testdir/test_options.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/old/testdir/test_options.vim b/test/old/testdir/test_options.vim index 5a2d397b6e..33043b9ee5 100644 --- a/test/old/testdir/test_options.vim +++ b/test/old/testdir/test_options.vim @@ -1400,7 +1400,7 @@ func Test_shortmess_F3() if has('nanotime') sleep 10m else - sleep 2 + sleep 3 endif call writefile(['bar'], 'X_dummy') bprev @@ -1410,7 +1410,7 @@ func Test_shortmess_F3() if has('nanotime') sleep 10m else - sleep 2 + sleep 3 endif call writefile(['baz'], 'X_dummy') checktime