diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2015-12-05 13:23:48 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2015-12-05 13:23:48 -0500 |
commit | 0cc6badf69f914667d3645af3e8d05e973542cb1 (patch) | |
tree | 8552af634992806a25b4423f107032f6cb772cfd | |
parent | 85cb94f61bfb7e3ac852912f773bef4e15d98cc1 (diff) | |
download | postgresql-0cc6badf69f914667d3645af3e8d05e973542cb1.tar.gz postgresql-0cc6badf69f914667d3645af3e8d05e973542cb1.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
-rw-r--r-- | src/test/perl/TestLib.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/perl/TestLib.pm b/src/test/perl/TestLib.pm index 02533ebde53..478f855462f 100644 --- a/src/test/perl/TestLib.pm +++ b/src/test/perl/TestLib.pm @@ -112,7 +112,7 @@ sub tempdir { return File::Temp::tempdir( 'tmp_testXXXX', - DIR => $ENV{TESTDIR} || cwd(), + DIR => $tmp_check, CLEANUP => 1); } |