]> granicus.if.org Git - vim/commitdiff
patch 8.0.0462: failure of an MS-Windows test may go unnoticed v8.0.0462
authorBram Moolenaar <Bram@vim.org>
Thu, 16 Mar 2017 13:04:51 +0000 (14:04 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 16 Mar 2017 13:04:51 +0000 (14:04 +0100)
Problem:    If an MS-Windows tests succeeds at first and then fails in a way
            it does not produce a test.out file it looks like the test
            succeeded.
Solution:   Delete the previous output file.

src/testdir/Make_dos.mak
src/version.c

index f9d21a5fa8d09b2c4a82467d7acda04d12755223..fe2e2ba25feff9e504baf51da39323cb67a00a65 100644 (file)
@@ -44,6 +44,7 @@ $(DOSTMP_INFILES): $(*B).in
 # This moves test99.in to test99.in.bak temporarily.
 $(TEST_OUTFILES): $(DOSTMP)\$(*B).in
        -@if exist test.out DEL test.out
+       -@if exist $(DOSTMP)\$(*B).out DEL $(DOSTMP)\$(*B).out
        move $(*B).in $(*B).in.bak > nul
        copy $(DOSTMP)\$(*B).in $(*B).in > nul
        copy $(*B).ok test.ok > nul
index 7f6d38fcc527af765db8793576cb14367c8f1190..ff1c9b84a0eba271bd85347d2f0f8ae8b7d37b33 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    462,
 /**/
     461,
 /**/