We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42d6504 commit bf20e82Copy full SHA for bf20e82
t/lib/MakeMaker/Test/Utils.pm
@@ -429,7 +429,7 @@ Returns the return value of the given code.
429
sub in_dir(&;$) {
430
my $code = shift;
431
require File::Temp;
432
- my $dir = shift || File::Temp->newdir;
+ my $dir = shift || File::Temp::tempdir(TMPDIR => 1, CLEANUP => 1);
433
# chdir to the new directory
434
my $orig_dir = getcwd();
435
chdir $dir or die "Can't chdir to $dir: $!";
0 commit comments