summaryrefslogtreecommitdiff
path: root/src/testdir/Make_dos.mak
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-16 14:04:51 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-16 14:04:51 +0100
commitb27523ff7ab3083c20c0f33415d890f978726c4f (patch)
tree644ee96af574a2fe29ec9e601e2154f24a0bcc59 /src/testdir/Make_dos.mak
parent4a5a8dd6e5fa5581bd24b584a71b5fce9ba34bb8 (diff)
downloadvim-git-b27523ff7ab3083c20c0f33415d890f978726c4f.tar.gz
patch 8.0.0462: failure of an MS-Windows test may go unnoticedv8.0.0462
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.
Diffstat (limited to 'src/testdir/Make_dos.mak')
-rw-r--r--src/testdir/Make_dos.mak1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/testdir/Make_dos.mak b/src/testdir/Make_dos.mak
index f9d21a5fa..fe2e2ba25 100644
--- a/src/testdir/Make_dos.mak
+++ b/src/testdir/Make_dos.mak
@@ -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