Commit db072363 authored by Tom Lane's avatar Tom Lane

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
parent d4b686af
...@@ -114,7 +114,7 @@ sub tempdir ...@@ -114,7 +114,7 @@ sub tempdir
{ {
return File::Temp::tempdir( return File::Temp::tempdir(
'tmp_testXXXX', 'tmp_testXXXX',
DIR => $ENV{TESTDIR} || cwd(), DIR => $tmp_check,
CLEANUP => 1); CLEANUP => 1);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment