postgres.git / summary / log / commit / refs

commit    db0723631ef1460e9e795c6d13abb19da403a3f1
Author:   Tom Lane <tgl@sss.pgh.pa.us>
Date:     Sat Dec 05 18:23:48 2015 +0000
First released in: 9.6.0, 9.4.6, 9.5.0

    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


src/test/perl/TestLib.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/perl/TestLib.pm b/src/test/perl/TestLib.pm index 7edd4c40eac..da67f33c7e3 100644 --- a/src/test/perl/TestLib.pm +++ b/src/test/perl/TestLib.pm @@ -114,7 +114,7 @@ sub tempdir { return File::Temp::tempdir( 'tmp_testXXXX', - DIR => $ENV{TESTDIR} || cwd(), + DIR => $tmp_check, CLEANUP => 1); } [parent: d4b686af0b8f]