]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0410: test suite races when run with parallel make v9.2.0410
authorJesse Rosenstock <jmr@google.com>
Tue, 28 Apr 2026 19:23:41 +0000 (19:23 +0000)
committerChristian Brabandt <cb@256bit.org>
Tue, 28 Apr 2026 19:23:41 +0000 (19:23 +0000)
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 <jmr@google.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/Makefile
src/version.c

index 2e1d900b8850919ec73527ce5ab09a700fca0b77..181dee36cb67a410edcf154f5d99285e3fd84ea5 100644 (file)
@@ -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
index c1b9f298a8e4c8fcab12e4560627d201c6e419f8..a19d721d7da819ca3c065a35dd443e3248dc30f8 100644 (file)
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    410,
 /**/
     409,
 /**/