Commit: patch 9.2.0928: MinGW: tests hang when Vim is built with coverage enabled

Christian Brabandt <[email protected]> Mon, 10 Aug 2026 20:45:05 +0200
Newsgroups gmane.editors.vim.devel
Message-ID <[email protected]>
patch 9.2.0928: MinGW: tests hang when Vim is built with coverage enabled

Commit: https://github.com/vim/vim/commit/e684321fccf4a99bfec821f5b868c76d346e5c31
Author: Hirohito Higashi <[email protected]>
Date:   Mon Aug 10 18:31:42 2026 +0000

    patch 9.2.0928: MinGW: tests hang when Vim is built with coverage enabled
    
    Problem:  When building with MinGW and COVERAGE=yes the tests hang: a
              command started from Vim never returns, although the child
              process has already exited.
    Solution: Do not build vimrun.exe with coverage instrumentation.
    
    fixes:  #20976
    closes: #20991
    
    Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
    Signed-off-by: Hirohito Higashi <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/src/Make_cyg_ming.mak b/src/Make_cyg_ming.mak
index 4a533b2b7..f0e6856c4 100644
--- a/src/Make_cyg_ming.mak
+++ b/src/Make_cyg_ming.mak
@@ -1163,8 +1163,10 @@ endif
 
 all: $(MAIN_TARGET) vimrun.exe xxd/xxd.exe tee/tee.exe install.exe uninstall.exe GvimExt/gvimext.dll
 
+# Coverage instrumentation makes _wsystem() in vimrun hang, and vimrun is not
+# part of Vim itself, so never instrument it.
 vimrun.exe: vimrun.c
-	$(CC) $(CFLAGS) -o vimrun.exe vimrun.c $(LIB)
+	$(CC) $(filter-out --coverage,$(CFLAGS)) -o vimrun.exe vimrun.c $(LIB)
 
 install.exe: dosinst.c dosinst.h version.h
 	$(CC) $(CFLAGS) -o install.exe dosinst.c $(LIB) -lole32 -luuid
diff --git a/src/version.c b/src/version.c
index f7e3dbc2a..ccd80f56b 100644
--- a/src/version.c
+++ b/src/version.c
@@ -763,6 +763,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    928,
 /**/
     927,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1wtUzh-005ju9-V3%40256bit.org.