1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-09 17:03:00 +03:00

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
This commit is contained in:
Tom Lane
2015-12-05 13:23:48 -05:00
parent 85cb94f61b
commit 0cc6badf69

View File

@@ -112,7 +112,7 @@ sub tempdir
{
return File::Temp::tempdir(
'tmp_testXXXX',
DIR => $ENV{TESTDIR} || cwd(),
DIR => $tmp_check,
CLEANUP => 1);
}