From: Tom Lane Date: Sat, 5 Dec 2015 18:23:48 +0000 (-0500) Subject: Create TestLib.pm's tempdir underneath tmp_check/, not out in the open. X-Git-Tag: REL9_5_RC1~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=20c444f5b5ef155147b8f3ef115f6bc5382fd2c6;p=thirdparty%2Fpostgresql.git 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 --- 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); }