diff options
author | Noah Misch <noah@leadboat.com> | 2018-08-19 01:12:22 -0700 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2018-08-19 01:12:22 -0700 |
commit | a53f0edd64d0b11abc4a87681ba85669ae90ce1f (patch) | |
tree | ae3a6a2ae73b0bca07bd7b966bd37ba7b63cb756 | |
parent | d83423db869900ffa2470826de5f8255d45ff9c6 (diff) | |
download | postgresql-a53f0edd64d0b11abc4a87681ba85669ae90ce1f.tar.gz postgresql-a53f0edd64d0b11abc4a87681ba85669ae90ce1f.zip |
MSVC: Remove any tmp_check directory before running a TAP test suite.
Back-patch to v11, where commit 90627cf98a8e7d0531789391fd798c9bfcc3bc1a
made the GNU make build system do likewise. Without this, when a
typical PostgresNode-using test failed, subsequent runs bailed out with
a "File exists" error.
-rw-r--r-- | src/tools/msvc/vcregress.pl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl index 4dc051aa628..ce5c976c16e 100644 --- a/src/tools/msvc/vcregress.pl +++ b/src/tools/msvc/vcregress.pl @@ -10,6 +10,7 @@ use Cwd; use File::Basename; use File::Copy; use File::Find (); +use File::Path qw(rmtree); use Install qw(Install); @@ -205,6 +206,7 @@ sub tap_check $ENV{TESTDIR} = "$dir"; + rmtree('tmp_check'); system(@args); my $status = $? >> 8; return $status; |