]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0430: tests: Test_shortmess_F3() is flaky on MS-Windows v9.2.0430
authorYasuhiro Matsumoto <mattn.jp@gmail.com>
Sat, 2 May 2026 15:20:18 +0000 (15:20 +0000)
committerChristian Brabandt <cb@256bit.org>
Sat, 2 May 2026 15:20:18 +0000 (15:20 +0000)
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: #20117

Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_options.vim
src/version.c

index bbca7fe46f2fefdabcf8e59fcd0533a071d1bd22..fa2667525ff09397ef1fa22996401355807d55d1 100644 (file)
@@ -1450,7 +1450,7 @@ func Test_shortmess_F3()
   if has('nanotime')
     sleep 10m
   else
-    sleep 2
+    sleep 3
   endif
   call writefile(['bar'], 'X_dummy')
   bprev
@@ -1460,7 +1460,7 @@ func Test_shortmess_F3()
   if has('nanotime')
     sleep 10m
   else
-    sleep 2
+    sleep 3
   endif
   call writefile(['baz'], 'X_dummy')
   checktime
index 95d93bb21c81da6e0f51ce4f229d74dfb902fda7..0ce32fb2e4c774c6f17096a3658b78a00ecfb9f4 100644 (file)
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    430,
 /**/
     429,
 /**/