Content-Length: 256967 | pFad | http://github.com/postgrespro/postgres_cluster/commit/db0723631ef1460e9e795c6d13abb19da403a3f1

54 Create TestLib.pm's tempdir underneath tmp_check/, not out in the open. · postgrespro/postgres_cluster@db07236 · GitHub
Skip to content

Commit db07236

Browse files
committed
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
1 parent d4b686a commit db07236

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/perl/TestLib.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ sub tempdir
114114
{
115115
return File::Temp::tempdir(
116116
'tmp_testXXXX',
117-
DIR => $ENV{TESTDIR} || cwd(),
117+
DIR => $tmp_check,
118118
CLEANUP => 1);
119119
}
120120

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/db0723631ef1460e9e795c6d13abb19da403a3f1

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy