Commit: patch 9.2.0410: test suite races when run with parallel make

4 views
Skip to first unread message

Christian Brabandt

unread,
Apr 28, 2026, 3:45:13 PMApr 28
to vim...@googlegroups.com
patch 9.2.0410: test suite races when run with parallel make

Commit: https://github.com/vim/vim/commit/6146f3382fcf295bdf7bdfab071e36a6410d14ca
Author: Jesse Rosenstock <j...@google.com>
Date: Tue Apr 28 19:23:41 2026 +0000

patch 9.2.0410: test suite races when run with parallel make

Problem: Running "make test" with -jN causes spurious failures because
the old-style tests share filenames (test.ok, test.out, X*,
viminfo) in the working directory.
Solution: Add .NOTPARALLEL to the testdir Makefile to prevent parallel
execution of tests (Jesse Rosenstock).

closes: #20082

Co-authored-by: Gemini
Signed-off-by: Jesse Rosenstock <j...@google.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/testdir/Makefile b/src/testdir/Makefile
index 2e1d900b8..181dee36c 100644
--- a/src/testdir/Makefile
+++ b/src/testdir/Makefile
@@ -2,6 +2,11 @@
# Makefile to run all tests for Vim
#

+# The old-style tests (*.in) use shared filenames in the working directory
+# (test.ok, test.out, X*, viminfo), so running them in parallel causes races
+# and spurious failures.
+.NOTPARALLEL:
+
# Use console or GUI.
VIMPROG = ../vim
XXDPROG = ../xxd/xxd
diff --git a/src/version.c b/src/version.c
index c1b9f298a..a19d721d7 100644
--- a/src/version.c
+++ b/src/version.c
@@ -729,6 +729,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 410,
/**/
409,
/**/
Reply all
Reply to author
Forward
0 new messages