aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-12-05 13:23:48 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2015-12-05 13:23:48 -0500
commitdb0723631ef1460e9e795c6d13abb19da403a3f1 (patch)
tree04d86f32bca77d0c91cedb668b5fe09583d11392 /src
parentd4b686af0b8ff2d2557b4fec7e5938abb9249167 (diff)
downloadpostgresql-db0723631ef1460e9e795c6d13abb19da403a3f1.tar.gz
postgresql-db0723631ef1460e9e795c6d13abb19da403a3f1.zip
Create TestLib.pm's tempdir underneath tmp_check/, not out in the open.
This way, existing .gitignore entries and makefile clean actions will automatically apply to the tempdir, should it survive a TAP test run (which can happen if the user control-C's out of the run, for example). Michael Paquier, per a complaint from me
Diffstat (limited to 'src')
-rw-r--r--src/test/perl/TestLib.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/perl/TestLib.pm b/src/test/perl/TestLib.pm
index 7edd4c40eac..da67f33c7e3 100644
--- a/src/test/perl/TestLib.pm
+++ b/src/test/perl/TestLib.pm
@@ -114,7 +114,7 @@ sub tempdir
{
return File::Temp::tempdir(
'tmp_testXXXX',
- DIR => $ENV{TESTDIR} || cwd(),
+ DIR => $tmp_check,
CLEANUP => 1);
}