Amend bcbb2654: Use a tempdir() template so it's clear the Moose tests own the files
[gitmo/Moose.git] / t / 060_compat / 001_module_refresh_compat.t
index dae9fa6..6e88af9 100644 (file)
@@ -41,7 +41,7 @@ and actually change the module itself.
 
 =cut
 
-my $dir = tempdir CLEANUP => 1;
+my $dir = tempdir( "MooseTest-XXXXX", CLEANUP => 1, TMPDIR => 1 );
 push @INC, $dir;
 
 my $test_module_file = File::Spec->catdir($dir, 'TestBaz.pm');