public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-Dist-Zilla] f44: Fix tests in *tests package
@ 2026-09-17 18:49
0 siblings, 0 replies; only message in thread
From: @ 2026-09-17 18:49 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/perl-Dist-Zilla
Branch : f44
Commit : 312c1abccb6c8f7ef6b2ec35727c3ad8c5c4226c
Author : Michal Josef Špaček <mspacek@redhat.com>
Date : 2026-09-17T20:29:58+02:00
Stats : +1732/-30 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/perl-Dist-Zilla/c/312c1abccb6c8f7ef6b2ec35727c3ad8c5c4226c?branch=f44
Log:
Fix tests in *tests package
---
diff --git a/Dist-Zilla-6.039-tmp_dir.patch b/Dist-Zilla-6.039-tmp_dir.patch
index 597498c..e462f97 100644
--- a/Dist-Zilla-6.039-tmp_dir.patch
+++ b/Dist-Zilla-6.039-tmp_dir.patch
@@ -1,76 +1,1775 @@
-diff -u -r Dist-Zilla-6.039.orig/t/plugins/fakerelease.t Dist-Zilla-6.039/t/plugins/fakerelease.t
---- Dist-Zilla-6.039.orig/t/plugins/fakerelease.t 2026-09-15 14:27:33.779749994 +0200
-+++ Dist-Zilla-6.039/t/plugins/fakerelease.t 2026-09-15 16:43:43.646804080 +0200
-@@ -2,9 +2,12 @@
+diff -u -r Dist-Zilla-6.039.orig/t/copyright-year.t Dist-Zilla-6.039/t/copyright-year.t
+--- Dist-Zilla-6.039.orig/t/copyright-year.t 2026-09-15 14:27:33.777019563 +0200
++++ Dist-Zilla-6.039/t/copyright-year.t 2026-09-17 13:30:14.618698844 +0200
+@@ -3,8 +3,11 @@
+ use experimental qw(signatures);
+ use Test::More 0.88;
+
++use File::Temp qw(tempdir);
+ use Test::DZil;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ my $this_year = (localtime)[5] + 1900;
+
+ sub year_is ($config, $expected, $desc, @sections) {
+@@ -14,6 +17,7 @@
+ add_files => {
+ 'source/dist.ini' => simple_ini($config, "GatherDir", @sections),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/diagnostics/main-module.t Dist-Zilla-6.039/t/diagnostics/main-module.t
+--- Dist-Zilla-6.039.orig/t/diagnostics/main-module.t 2026-09-15 14:27:33.782791644 +0200
++++ Dist-Zilla-6.039/t/diagnostics/main-module.t 2026-09-16 14:00:34.780041484 +0200
+@@ -1,13 +1,16 @@
+ use strict;
use warnings;
+
++use File::Temp qw(tempdir);
use Test::More 0.88;
+ use Test::DZil;
+ use Test::Fatal;
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ sub mkconfig {
+ my $root = shift;
+- my $t = Builder->from_config( { dist_root => $root }, { add_files => { 'source/dist.ini' => simple_ini(@_) } } );
++ my $t = Builder->from_config( { dist_root => $root }, { add_files => { 'source/dist.ini' => simple_ini(@_) }, tempdir_root => $temp_dir } );
+ $t->build;
+ return $t;
+ }
+diff -u -r Dist-Zilla-6.039.orig/t/diagnostics/plugin-fail.t Dist-Zilla-6.039/t/diagnostics/plugin-fail.t
+--- Dist-Zilla-6.039.orig/t/diagnostics/plugin-fail.t 2026-09-15 14:27:33.782919184 +0200
++++ Dist-Zilla-6.039/t/diagnostics/plugin-fail.t 2026-09-17 14:04:33.699875822 +0200
+@@ -4,13 +4,18 @@
+ use Test::More 0.88;
+ use Test::DZil;
+ use Test::Fatal;
+use File::Temp qw(tempdir);
- use Test::DZil qw(Builder simple_ini);
- use Test::Fatal qw(exception);
+
+ use lib 't/lib';
+
++my $temp_dir = tempdir('CLEANUP' => 1);
+
+ sub mkconfig {
+ my $root = shift;
+- my $t = Builder->from_config( { dist_root => $root }, { add_files => { 'source/dist.ini' => simple_ini(@_) } } );
++ my $t = Builder->from_config( { dist_root => $root }, {
++ add_files => { 'source/dist.ini' => simple_ini(@_) },
++ tempdir_root => $temp_dir,
++ } );
+ $t->build;
+ return $t;
+ }
+diff -u -r Dist-Zilla-6.039.orig/t/distpl.t Dist-Zilla-6.039/t/distpl.t
+--- Dist-Zilla-6.039.orig/t/distpl.t 2026-09-15 14:27:33.776219728 +0200
++++ Dist-Zilla-6.039/t/distpl.t 2026-09-17 13:59:07.712462286 +0200
+@@ -2,10 +2,14 @@
+ use warnings;
+ use Test::More 0.88;
+
++use File::Temp qw(tempdir);
+ use Test::DZil;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ my $tzil = Builder->from_config(
+ { dist_root => 'corpus/dist/DZ2' },
++ { tempdir_root => $temp_dir },
+ );
+
+ $tzil->chrome->logger->set_debug(1);
+diff -u -r Dist-Zilla-6.039.orig/t/empty-abstract.t Dist-Zilla-6.039/t/empty-abstract.t
+--- Dist-Zilla-6.039.orig/t/empty-abstract.t 2026-09-15 14:27:33.777110317 +0200
++++ Dist-Zilla-6.039/t/empty-abstract.t 2026-09-17 13:54:32.365607866 +0200
+@@ -4,9 +4,12 @@
+ use Test::More;
+ use Test::DZil;
+ use Test::Fatal;
++use File::Temp qw(tempdir);
+ use Path::Tiny;
+ use List::Util 'first';
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ my $tzil = Builder->from_config(
+ { dist_root => 't/does_not_exist' },
+ {
+@@ -35,6 +38,7 @@
+ =cut
+ MODULE
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/file-addedby.t Dist-Zilla-6.039/t/file-addedby.t
+--- Dist-Zilla-6.039.orig/t/file-addedby.t 2026-09-15 14:27:33.776925937 +0200
++++ Dist-Zilla-6.039/t/file-addedby.t 2026-09-17 13:56:17.188939802 +0200
+@@ -5,9 +5,12 @@
+ use Test::DZil;
+ use Test::Deep;
+ use Test::Fatal;
++use File::Temp qw(tempdir);
+ use Path::Tiny;
+ use List::Util 'first';
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ my $tzil = Builder->from_config(
+ { dist_root => 't/does_not_exist' },
+ {
+@@ -24,6 +27,7 @@
+ ),
+ path(qw(source lib DZT Sample.pm)) => "package DZT::Sample;\n\n1",
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/file.t Dist-Zilla-6.039/t/file.t
+--- Dist-Zilla-6.039.orig/t/file.t 2026-09-15 14:27:33.775988889 +0200
++++ Dist-Zilla-6.039/t/file.t 2026-09-17 14:07:52.361715067 +0200
+@@ -7,6 +7,7 @@
+ binmode(Test::More->builder->$_, ":utf8") for qw/output failure_output todo_output/;
+
+ use Encode;
++use File::Temp qw(tempdir);
+ use Path::Tiny;
+ use Test::DZil;
+ use List::Util 'first';
+@@ -15,6 +16,8 @@
+ use Dist::Zilla::File::OnDisk;
+ use Dist::Zilla::File::FromCode;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ my %sample = (
+ dolmen => "Olivier Mengué",
+ keedi =>"김도형 - Keedi Kim",
+@@ -35,6 +38,7 @@
+ ),
+ path(qw(source lib DZT Sample.pm)) => "package DZT::Sample;\n\n1",
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/lib/Dist/Zilla/Plugin/TestArchiveBuilder.pm Dist-Zilla-6.039/t/lib/Dist/Zilla/Plugin/TestArchiveBuilder.pm
+--- Dist-Zilla-6.039.orig/t/lib/Dist/Zilla/Plugin/TestArchiveBuilder.pm 2026-09-15 14:27:33.784798298 +0200
++++ Dist-Zilla-6.039/t/lib/Dist/Zilla/Plugin/TestArchiveBuilder.pm 2026-09-17 10:28:03.199222421 +0200
+@@ -1,5 +1,6 @@
+ package Dist::Zilla::Plugin::TestArchiveBuilder;
+
++use File::Temp qw(tempdir);
+ use Moose;
+ use Path::Tiny qw( path );
+ use JSON::MaybeXS qw( encode_json );
+@@ -10,9 +11,11 @@
+ sub build_archive {
+ my ($self, $archive_basename, $built_in, $basedir) = @_;
+
++ my $temp_dir = tempdir('CLEANUP' => 1);
++
+ # instead of archiving in gzip compressed tarball
+ # we are writing a fooball archive.
+- my $fooball = path($archive_basename . ".foo");
++ my $fooball = path($temp_dir, $archive_basename . ".foo");
+
+ $fooball->spew_raw(
+ encode_json(
+diff -u -r Dist-Zilla-6.039.orig/t/load_config.t Dist-Zilla-6.039/t/load_config.t
+--- Dist-Zilla-6.039.orig/t/load_config.t 2026-09-15 14:27:33.776648869 +0200
++++ Dist-Zilla-6.039/t/load_config.t 2026-09-17 14:08:07.223601029 +0200
+@@ -5,6 +5,10 @@
+ use Test::DZil;
+ use Test::Fatal;
+
++use File::Temp qw(tempdir);
++
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ {
+ package Dist::Zilla::PluginBundle::Bunk;
+ use Moose;
+@@ -25,6 +29,7 @@
+ 'DoesNotExist',
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+ },
+@@ -42,6 +47,7 @@
+ '@DoesNotExist',
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+ },
+@@ -59,6 +65,7 @@
+ '@Bunk',
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+ },
+diff -u -r Dist-Zilla-6.039.orig/t/minter.t Dist-Zilla-6.039/t/minter.t
+--- Dist-Zilla-6.039.orig/t/minter.t 2026-09-15 14:27:33.776313631 +0200
++++ Dist-Zilla-6.039/t/minter.t 2026-09-17 13:47:01.986269786 +0200
+@@ -4,11 +4,14 @@
+ use Test::More 0.88;
+
+ use File::pushd qw/pushd/;
++use File::Temp qw(tempdir);
+ use Dist::Zilla::Path;
+ use Test::DZil;
+ use Dist::Zilla::App::Tester;
+ use YAML::Tiny;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ use Test::File::ShareDir -share => {
+ -module => { 'Dist::Zilla::MintingProfile::Default' => 'profiles' },
+ };
+@@ -16,7 +19,10 @@
+ my $tzil = Minter->_new_from_profile(
+ [ Default => 'default' ],
+ { name => 'DZT-Minty', },
+- { global_config_root => 'corpus/global' },
++ {
++ global_config_root => 'corpus/global',
++ tempdir_root => $temp_dir,
++ },
+ );
+
+ $tzil->mint_dist;
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/archive_builder.t Dist-Zilla-6.039/t/plugins/archive_builder.t
+--- Dist-Zilla-6.039.orig/t/plugins/archive_builder.t 2026-09-15 14:27:33.781330768 +0200
++++ Dist-Zilla-6.039/t/plugins/archive_builder.t 2026-09-17 10:31:50.696148334 +0200
+@@ -5,9 +5,12 @@
+
+ use lib 't/lib';
+
++use File::Temp qw(tempdir);
+ use Test::DZil;
+ use JSON::MaybeXS;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ my $tzil = Builder->from_config(
+ { dist_root => 'corpus/dist/DZT' },
+ {
+@@ -18,6 +21,7 @@
+ 'TestReleaseProvider',
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/autolicense.t Dist-Zilla-6.039/t/plugins/autolicense.t
+--- Dist-Zilla-6.039.orig/t/plugins/autolicense.t 2026-09-15 14:27:33.779419115 +0200
++++ Dist-Zilla-6.039/t/plugins/autolicense.t 2026-09-17 10:32:23.851148813 +0200
+@@ -4,9 +4,12 @@
+
+ use lib 't/lib';
+
++use File::Temp qw(tempdir);
+ use Test::DZil;
+ use YAML::Tiny;
+my $temp_dir = tempdir('CLEANUP' => 1);
+
{
my $tzil = Builder->from_config(
{ dist_root => 'corpus/dist/DZT' },
-@@ -12,6 +15,7 @@
- add_files => {
- 'source/dist.ini' => simple_ini(qw(GatherDir FakeRelease)),
+@@ -21,6 +24,7 @@
+ 'TestAutoLicense',
+ ),
},
+ tempdir_root => $temp_dir,
},
);
-@@ -35,6 +39,7 @@
- } ]
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/autoname.t Dist-Zilla-6.039/t/plugins/autoname.t
+--- Dist-Zilla-6.039.orig/t/plugins/autoname.t 2026-09-15 14:27:33.777959565 +0200
++++ Dist-Zilla-6.039/t/plugins/autoname.t 2026-09-17 10:32:58.839453729 +0200
+@@ -4,9 +4,12 @@
+
+ use lib 't/lib';
+
++use File::Temp qw(tempdir);
+ use Test::DZil;
+ use YAML::Tiny;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ {
+ my $tzil = Builder->from_config(
+ { dist_root => 'corpus/dist/DZT' },
+@@ -18,6 +21,7 @@
+ 'TestAutoName',
),
},
+ tempdir_root => $temp_dir,
},
);
-@@ -55,6 +60,7 @@
- 'source/dist.ini' => simple_ini(qw(GatherDir FakeRelease)),
- },
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/autoprereqs.t Dist-Zilla-6.039/t/plugins/autoprereqs.t
+--- Dist-Zilla-6.039.orig/t/plugins/autoprereqs.t 2026-09-15 14:27:33.779518111 +0200
++++ Dist-Zilla-6.039/t/plugins/autoprereqs.t 2026-09-17 11:01:45.517588125 +0200
+@@ -4,6 +4,7 @@
+ use Test::More 0.88;
+ use Test::Deep;
+
++use File::Temp qw(tempdir);
+ use Test::DZil;
+ use YAML::Tiny;
+
+@@ -14,9 +15,11 @@
+ $tzil->distmeta;
+ }
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ my $tzil = Builder->from_config(
+ { dist_root => 'corpus/dist/AutoPrereqs' },
+- { },
++ { tempdir_root => $temp_dir },
+ );
+
+ # check found prereqs
+@@ -66,6 +69,7 @@
+ ),
+ 'source/inc/DZPA.pm' => "use DZPA::NotInDist;\n use DZPA::Configure;\n",
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -103,6 +107,7 @@
+ 'source/inc/DZPA.pm' => "use DZPA::NotInDist;\n use DZPA::Configure;\n",
+ 'source/t/basic.t' => "use Test::Foo;\n",
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -143,6 +148,7 @@
+ 'source/xt/release/more3.t' => "use Test::Qux;\n",
+ 'source/xt/more4.t' => "use Test::Norf;\n",
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -181,6 +187,7 @@
+ ),
+ 'source/lib/DZPA/Aliased.pm' => "use aliased 'Long::Class::Name';\n",
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -219,6 +226,7 @@
+ ),
+ 'source/t/basic.t' => "use Test::Foo;\n",
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -248,6 +256,7 @@
+ 'source/Util.pm' => "package Taint::Util;\nour \$VERSION = 1;\n1;\n",
+ 'source/t/taint.t' => "use Test::More;\nuse Taint::Util;\nok(1);\ndone_testing;\n",
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/autoversion.t Dist-Zilla-6.039/t/plugins/autoversion.t
+--- Dist-Zilla-6.039.orig/t/plugins/autoversion.t 2026-09-15 14:27:33.779652921 +0200
++++ Dist-Zilla-6.039/t/plugins/autoversion.t 2026-09-17 10:57:34.393107145 +0200
+@@ -2,11 +2,14 @@
+ use warnings;
+ use Test::More 0.88;
+
++use File::Temp qw(tempdir);
+ use Test::DZil;
+ use YAML::Tiny;
+
+ delete $ENV{V};
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ {
+ my $tzil = Builder->from_config(
+ { dist_root => 'corpus/dist/DZT' },
+@@ -18,6 +21,7 @@
+ [ AutoVersion => { major => 6, format => '{{$major}}.{{$^T}}' } ],
+ ),
},
+ tempdir_root => $temp_dir,
- );
+ },
+ );
- local $ENV{DZIL_FAKERELEASE_FAIL} = 1;
-diff -u -r Dist-Zilla-6.039.orig/t/plugins/metaresources.t Dist-Zilla-6.039/t/plugins/metaresources.t
---- Dist-Zilla-6.039.orig/t/plugins/metaresources.t 2026-09-15 14:27:33.780693120 +0200
-+++ Dist-Zilla-6.039/t/plugins/metaresources.t 2026-09-15 16:44:17.160689952 +0200
-@@ -2,6 +2,7 @@
+@@ -41,6 +45,7 @@
+ format => q<{{$major}}.{{ cldr('y') }}> } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -61,6 +66,7 @@
+ [ AutoVersion => { major => 6, format => '{{$major}}.{{$^T}}' } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/confirmrelease.t Dist-Zilla-6.039/t/plugins/confirmrelease.t
+--- Dist-Zilla-6.039.orig/t/plugins/confirmrelease.t 2026-09-15 14:27:33.780812521 +0200
++++ Dist-Zilla-6.039/t/plugins/confirmrelease.t 2026-09-17 10:57:51.916912852 +0200
+@@ -5,6 +5,10 @@
+ use Test::Deep;
+ use Test::DZil;
+
++use File::Temp qw(tempdir);
++
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ sub new_tzil {
+ my $tzil = Builder->from_config(
+ { dist_root => 'corpus/dist/DZT' },
+@@ -13,6 +17,7 @@
+ 'source/dist.ini' =>
+ simple_ini(qw(GatherDir ConfirmRelease FakeRelease)),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+ }
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/cpanfile.t Dist-Zilla-6.039/t/plugins/cpanfile.t
+--- Dist-Zilla-6.039.orig/t/plugins/cpanfile.t 2026-09-15 14:27:33.778051300 +0200
++++ Dist-Zilla-6.039/t/plugins/cpanfile.t 2026-09-17 10:58:44.927879135 +0200
+@@ -4,11 +4,14 @@
+ use Test::More;
+ use Test::DZil;
+
++use File::Temp qw(tempdir);
+ use Dist::Zilla::Plugin::CPANFile;
+
+ # unfortunately this is a copy from the tested code
+ my $version = $Dist::Zilla::Plugin::CPANFile::VERSION // '<internal>';
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ is(
+ cpanfile('build/cpanfile') => <<"INI",
+ # This file is generated by Dist::Zilla::Plugin::CPANFile v$version
+@@ -59,6 +62,7 @@
+ add_files => {
+ 'source/dist.ini' => simple_ini(qw< GatherDir AutoPrereqs >, $opts),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/distmeta-merge.t Dist-Zilla-6.039/t/plugins/distmeta-merge.t
+--- Dist-Zilla-6.039.orig/t/plugins/distmeta-merge.t 2026-09-15 14:27:33.780911665 +0200
++++ Dist-Zilla-6.039/t/plugins/distmeta-merge.t 2026-09-17 10:59:18.652450092 +0200
+@@ -2,9 +2,12 @@
use warnings;
use Test::More 0.88;
+use File::Temp qw(tempdir);
use Test::DZil;
use Test::Deep;
- use CPAN::Meta::Converter;
-@@ -18,6 +19,8 @@
- my $json_backend = JSON::MaybeXS::JSON();
- my $serialization_json = $json_backend . ' version ' . $json_backend->VERSION;
+my $temp_dir = tempdir('CLEANUP' => 1);
+
{
+ package Keywords; # see also Dist::Zilla::Plugin::Keywords ;)
+ use Moose;
+@@ -36,6 +39,7 @@
+ [ '=Keywords' => 'plugin 2' => { keywords => [ qw(dog cat) ] } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/distmeta.t Dist-Zilla-6.039/t/plugins/distmeta.t
+--- Dist-Zilla-6.039.orig/t/plugins/distmeta.t 2026-09-15 14:27:33.778159556 +0200
++++ Dist-Zilla-6.039/t/plugins/distmeta.t 2026-09-17 11:35:39.743841065 +0200
+@@ -6,9 +6,12 @@
+
+ use Test::DZil;
+
++use File::Temp qw(tempdir);
+ use JSON::MaybeXS;
+ use YAML::Tiny;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ {
+ # 2.0
my $tzil = Builder->from_config(
- { dist_root => 'corpus/dist/DZT' },
-@@ -35,6 +38,7 @@
- ['MetaJSON'],
+@@ -27,6 +30,7 @@
+ 'MetaConfig',
),
},
+ tempdir_root => $temp_dir,
},
);
-@@ -118,6 +122,7 @@
- ['MetaJSON'],
+@@ -103,6 +107,7 @@
+ 'MetaConfig',
),
},
+ tempdir_root => $temp_dir,
},
);
+@@ -150,6 +155,7 @@
+ { # non-ASCII
+ my $tzil = Builder->from_config(
+ { dist_root => 'corpus/dist/DZ-NonAscii' },
++ { tempdir_root => $temp_dir },
+ );
+
+ $tzil->build;
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/encoding.t Dist-Zilla-6.039/t/plugins/encoding.t
+--- Dist-Zilla-6.039.orig/t/plugins/encoding.t 2026-09-15 14:27:33.778264576 +0200
++++ Dist-Zilla-6.039/t/plugins/encoding.t 2026-09-17 11:36:09.951419164 +0200
+@@ -4,8 +4,11 @@
+ use utf8;
+
+ use autodie;
++use File::Temp qw(tempdir);
+ use Test::DZil;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ my $ini = <<'END_INI';
+ license = Perl_5
+ author = E. Xavier Ample <example@example.org>
+@@ -34,6 +37,7 @@
+ add_files => {
+ 'source/dist.ini' => $ini
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/extratests.t Dist-Zilla-6.039/t/plugins/extratests.t
+--- Dist-Zilla-6.039.orig/t/plugins/extratests.t 2026-09-15 14:27:33.778990099 +0200
++++ Dist-Zilla-6.039/t/plugins/extratests.t 2026-09-17 11:36:49.198649795 +0200
+@@ -3,9 +3,12 @@
+ use Test::More 0.88;
+
+ use autodie;
++use File::Temp qw(tempdir);
+ use Test::DZil;
+ use Test::Deep;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ my $generic_test = <<'END_TEST';
+ #!perl
+
+@@ -31,6 +34,7 @@
+ (map {; "source/xt/$_/huffer.t" => sprintf($generic_test, $_) }
+ @xt_types, qw(blort))
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/fakerelease.t Dist-Zilla-6.039/t/plugins/fakerelease.t
+--- Dist-Zilla-6.039.orig/t/plugins/fakerelease.t 2026-09-15 14:27:33.779749994 +0200
++++ Dist-Zilla-6.039/t/plugins/fakerelease.t 2026-09-17 11:37:06.085349507 +0200
+@@ -2,9 +2,12 @@
+ use warnings;
+ use Test::More 0.88;
+
++use File::Temp qw(tempdir);
+ use Test::DZil qw(Builder simple_ini);
+ use Test::Fatal qw(exception);
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ {
+ my $tzil = Builder->from_config(
+ { dist_root => 'corpus/dist/DZT' },
+@@ -12,6 +15,7 @@
+ add_files => {
+ 'source/dist.ini' => simple_ini(qw(GatherDir FakeRelease)),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -35,6 +39,7 @@
+ } ]
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -54,6 +59,7 @@
+ add_files => {
+ 'source/dist.ini' => simple_ini(qw(GatherDir FakeRelease)),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/ffbyname.t Dist-Zilla-6.039/t/plugins/ffbyname.t
+--- Dist-Zilla-6.039.orig/t/plugins/ffbyname.t 2026-09-15 14:27:33.778365622 +0200
++++ Dist-Zilla-6.039/t/plugins/ffbyname.t 2026-09-17 11:37:51.706510884 +0200
+@@ -4,11 +4,14 @@
+
+ use Test::More 0.88; # done_testing
+
++use File::Temp qw(tempdir);
+ use Test::DZil qw(Builder simple_ini is_filelist);
+ use Dist::Zilla::File::InMemory;
+
+ my $tzil;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ my @dist_files = map { Dist::Zilla::File::InMemory->new(
+ name => $_, content => '') } qw(
+ Changes
+@@ -68,6 +71,7 @@
+ add_files => {
+ 'source/dist.ini' => simple_ini(@_),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/filefinders.t Dist-Zilla-6.039/t/plugins/filefinders.t
+--- Dist-Zilla-6.039.orig/t/plugins/filefinders.t 2026-09-15 14:27:33.779858272 +0200
++++ Dist-Zilla-6.039/t/plugins/filefinders.t 2026-09-17 11:38:41.626512168 +0200
+@@ -2,9 +2,12 @@
+ use warnings;
+ use Test::More 0.88;
+
++use File::Temp qw(tempdir);
+ use ExtUtils::Manifest 'maniread';
+ use Test::DZil;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ my $generic_test = <<'END_TEST';
+ use strict;
+ use warnings;
+@@ -38,6 +41,7 @@
+ (map {; "source/xt${_}more.t" => $generic_test }
+ qw(/author/ /smoke/ /release/ /)),
+ },
++ tempdir_root => $temp_dir,
+ also_copy => { 'corpus/dist/DZT_Inc' => 'corpus/dist/DZT_Inc',
+ 'corpus/dist/DZT_Bin' => 'corpus/dist/DZT_Bin',
+ 'corpus/dist/DZT_Share' => 'corpus/dist/DZT_Share'
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/gatherdir.t Dist-Zilla-6.039/t/plugins/gatherdir.t
+--- Dist-Zilla-6.039.orig/t/plugins/gatherdir.t 2026-09-15 14:27:33.778690565 +0200
++++ Dist-Zilla-6.039/t/plugins/gatherdir.t 2026-09-17 11:56:46.878374716 +0200
+@@ -3,9 +3,12 @@
+ use Test::More 0.88;
+
+ use ExtUtils::Manifest 'maniread';
++use File::Temp qw(tempdir);
+ use Test::DZil;
+ use Path::Tiny;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ my $tzil = Builder->from_config(
+ { dist_root => 'corpus/dist/DZT' },
+ {
+@@ -50,6 +53,7 @@
+ 'source/.dotdir/extra/notme.txt' => "Another file to exclude.\n",
+ 'source/extra/.dotdir/notme.txt' => "Another file to exclude.\n",
+ },
++ tempdir_root => $temp_dir,
+ also_copy => { 'corpus/extra' => 'corpus/extra', 'corpus/global' => 'corpus/global' },
+ },
+ );
+@@ -101,12 +105,12 @@
+ TODO: {
+ todo_skip('MSWin32 - skipping symlink test', 1) if $^O eq 'MSWin32' || $^O eq 'msys';
+
+- # tmp/tmp -> tmp/private/tmp
+- my $private = path('tmp', 'private');
++ # _tmp_dir_/tmp -> _tmp_dir_/private/tmp
++ my $private = path($temp_dir, 'private');
+ my $real_tmp = $private->child('tmp');
+ mkpath $real_tmp;
+- my $link_tmp = path('tmp', 'tmp');
+- symlink 'private/tmp', 'tmp/tmp';
++ my $link_tmp = path($temp_dir, 'tmp');
++ symlink $private, $link_tmp;
+
+ push @to_remove, [ $private, $link_tmp ];
+
+@@ -118,7 +122,7 @@
+ [ GatherDir => { root => 'DZ1' } ],
+ ),
+ },
+- tempdir_root => 'tmp/tmp',
++ tempdir_root => $link_tmp->stringify,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/gatherfile.t Dist-Zilla-6.039/t/plugins/gatherfile.t
+--- Dist-Zilla-6.039.orig/t/plugins/gatherfile.t 2026-09-15 14:27:33.779090073 +0200
++++ Dist-Zilla-6.039/t/plugins/gatherfile.t 2026-09-17 12:04:29.305848452 +0200
+@@ -2,10 +2,13 @@
+ use warnings;
+
+ use Test::More 0.88;
++use File::Temp qw(tempdir);
+ use Test::DZil;
+ use Test::Fatal;
+ use Path::Tiny;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ {
+ my $tzil = Builder->from_config(
+ { dist_root => 'does-not-exist' },
+@@ -18,6 +21,7 @@
+ ),
+ path(qw(source lib DZT Sample.pm)) => "package DZT::Sample;\n1",
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -47,6 +51,7 @@
+ ),
+ # no source/lib/DZT/Sample.pm
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -73,6 +78,7 @@
+ }],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ also_copy => { 'corpus/extra' => 'source/corpus/extra' },
+ },
+ );
+@@ -104,6 +110,7 @@
+ ),
+ path(qw(source lib DZT Sample.pm)) => "package DZT::Sample;\n1",
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/generatefile.t Dist-Zilla-6.039/t/plugins/generatefile.t
+--- Dist-Zilla-6.039.orig/t/plugins/generatefile.t 2026-09-15 14:27:33.780463344 +0200
++++ Dist-Zilla-6.039/t/plugins/generatefile.t 2026-09-17 12:04:50.589609924 +0200
+@@ -4,8 +4,11 @@
+ use utf8;
+
+ use autodie;
++use File::Temp qw(tempdir);
+ use Test::DZil;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ my $tzil = Builder->from_config(
+ { dist_root => 'corpus/dist/DZT' },
+ {
+@@ -32,6 +35,7 @@
+ ],
+ )
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -98,6 +102,7 @@
+ ],
+ )
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/installdirs.t Dist-Zilla-6.039/t/plugins/installdirs.t
+--- Dist-Zilla-6.039.orig/t/plugins/installdirs.t 2026-09-15 14:27:33.779953647 +0200
++++ Dist-Zilla-6.039/t/plugins/installdirs.t 2026-09-17 12:05:45.474584315 +0200
+@@ -2,8 +2,11 @@
+ use warnings;
+ use Test::More 0.88;
+
++use File::Temp qw(tempdir);
+ use Test::DZil;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ sub test_this {
+ my ($plugins, $add_files, $assertion) = @_;
+
+@@ -20,6 +23,7 @@
+ ),
+ %$add_files,
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/license.t Dist-Zilla-6.039/t/plugins/license.t
+--- Dist-Zilla-6.039.orig/t/plugins/license.t 2026-09-15 14:27:33.777663484 +0200
++++ Dist-Zilla-6.039/t/plugins/license.t 2026-09-17 12:20:21.654690074 +0200
+@@ -4,8 +4,11 @@
+ use utf8;
+
+ use autodie;
++use File::Temp qw(tempdir);
+ use Test::DZil;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ subtest "ASCII-only author" => sub {
+ my $tzil = Builder->from_config(
+ { dist_root => 'corpus/dist/DZT' },
+@@ -13,6 +16,7 @@
+ add_files => {
+ 'source/dist.ini' => simple_ini('License'),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -36,6 +40,7 @@
+ subtest "non-ASCII author" => sub {
+ my $tzil = Builder->from_config(
+ { dist_root => 'corpus/dist/DZ-NonAscii' },
++ { tempdir_root => $temp_dir },
+ );
+
+ $tzil->build;
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/makemaker.t Dist-Zilla-6.039/t/plugins/makemaker.t
+--- Dist-Zilla-6.039.orig/t/plugins/makemaker.t 2026-09-15 14:27:33.778791547 +0200
++++ Dist-Zilla-6.039/t/plugins/makemaker.t 2026-09-17 10:17:35.643452039 +0200
+@@ -4,8 +4,11 @@
+ use Test::Deep;
+ use Test::Fatal;
+
++use File::Temp qw(tempdir);
+ use Test::DZil;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ {
+ my $tzil = Builder->from_config(
+ { dist_root => 'corpus/dist/DZT' },
+@@ -24,6 +27,7 @@
+ [ Prereqs => ConfigureRequires => { perl => '5.010' } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -75,6 +79,7 @@
+ [ 'MakeMaker', { main_module => "DZT::Main" } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -118,6 +123,7 @@
+ [ Prereqs => RuntimeRequires => { 'Runner::Bob' => 0 } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -146,6 +152,7 @@
+ ),
+ 'source/lib/Foo.pm' => "package Foo;\n1\n",
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -171,6 +178,7 @@
+ ),
+ 'source/lib/Foo.pm' => "package Foo;\n1\n",
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/manifest.t Dist-Zilla-6.039/t/plugins/manifest.t
+--- Dist-Zilla-6.039.orig/t/plugins/manifest.t 2026-09-15 14:27:33.778589471 +0200
++++ Dist-Zilla-6.039/t/plugins/manifest.t 2026-09-17 12:06:23.293545641 +0200
+@@ -5,8 +5,11 @@
+
+ use ExtUtils::Manifest 1.66; # or maniread can't cope with quoting properly
+
++use File::Temp qw(tempdir);
+ use Test::DZil;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ my $tzil = Builder->from_config(
+ { dist_root => 'corpus/dist/DZT' },
+ {
+@@ -23,6 +26,7 @@
+ q{source/dir\\with some\\/whacks.txt} => "mar\n",
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/metanoindex.t Dist-Zilla-6.039/t/plugins/metanoindex.t
+--- Dist-Zilla-6.039.orig/t/plugins/metanoindex.t 2026-09-15 14:27:33.780057726 +0200
++++ Dist-Zilla-6.039/t/plugins/metanoindex.t 2026-09-16 12:16:31.104714730 +0200
+@@ -1,10 +1,13 @@
+ use strict;
+ use warnings;
+
++use File::Temp qw(tempdir);
+ use Test::More;
+ use Test::Deep;
+ use Test::DZil;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ my %TEST_ATTR = (
+ files => {
+ values => [ qw(My/Module.pm My/Module2.pm) ],
+@@ -51,6 +54,7 @@
+ ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/metaresources.t Dist-Zilla-6.039/t/plugins/metaresources.t
+--- Dist-Zilla-6.039.orig/t/plugins/metaresources.t 2026-09-15 14:27:33.780693120 +0200
++++ Dist-Zilla-6.039/t/plugins/metaresources.t 2026-09-16 12:14:56.642657803 +0200
+@@ -2,6 +2,7 @@
+ use warnings;
+ use Test::More 0.88;
+
++use File::Temp qw(tempdir);
+ use Test::DZil;
+ use Test::Deep;
+ use CPAN::Meta::Converter;
+@@ -18,6 +19,8 @@
+ my $json_backend = JSON::MaybeXS::JSON();
+ my $serialization_json = $json_backend . ' version ' . $json_backend->VERSION;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ {
+ my $tzil = Builder->from_config(
+ { dist_root => 'corpus/dist/DZT' },
+@@ -35,6 +38,7 @@
+ ['MetaJSON'],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -118,6 +122,7 @@
+ ['MetaJSON'],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/misctests.t Dist-Zilla-6.039/t/plugins/misctests.t
+--- Dist-Zilla-6.039.orig/t/plugins/misctests.t 2026-09-15 14:27:33.778894440 +0200
++++ Dist-Zilla-6.039/t/plugins/misctests.t 2026-09-17 12:24:44.831033633 +0200
+@@ -4,8 +4,11 @@
+ use Test::Deep;
+
+ use autodie;
++use File::Temp qw(tempdir);
+ use Test::DZil;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ my $tzil = Builder->from_config(
+ { dist_root => 'corpus/dist/DZT' },
+ {
+@@ -14,6 +17,7 @@
+ qw(GatherDir MetaTests PodSyntaxTests PodCoverageTests)
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/modulebuild.t Dist-Zilla-6.039/t/plugins/modulebuild.t
+--- Dist-Zilla-6.039.orig/t/plugins/modulebuild.t 2026-09-15 14:27:33.780154512 +0200
++++ Dist-Zilla-6.039/t/plugins/modulebuild.t 2026-09-17 13:27:41.697314561 +0200
+@@ -3,8 +3,11 @@
+ use Test::More 0.88;
+ use Test::Deep;
+
++use File::Temp qw(tempdir);
+ use Test::DZil;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ {
+ my $tzil = Builder->from_config(
+ { dist_root => 'corpus/dist/DZT' },
+@@ -18,6 +21,7 @@
+ [ Prereqs => TestRequires => { 'Test::Deet' => '7' } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -71,6 +75,7 @@
+ 'GatherDir', [ 'ModuleBuild' => { mb_class => 'Foo::Build' } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -100,6 +105,7 @@
+ build_element => [qw(js sql)],
+ } ] ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/munger-that-prunes.t Dist-Zilla-6.039/t/plugins/munger-that-prunes.t
+--- Dist-Zilla-6.039.orig/t/plugins/munger-that-prunes.t 2026-09-15 14:27:33.781490765 +0200
++++ Dist-Zilla-6.039/t/plugins/munger-that-prunes.t 2026-09-17 12:25:55.959755403 +0200
+@@ -4,9 +4,12 @@
+
+ use lib 't/lib';
+
++use File::Temp qw(tempdir);
+ use Test::DZil;
+ use YAML::Tiny;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ # In the future, pruning during munging may become impossible by design. Until
+ # that time, it should not cause weird-o action at a distance. -- rjbs,
+ # 2016-01-31
+@@ -24,6 +27,7 @@
+ 'MungerThatPrunesPodFiles',
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/nextrelease.t Dist-Zilla-6.039/t/plugins/nextrelease.t
+--- Dist-Zilla-6.039.orig/t/plugins/nextrelease.t 2026-09-15 14:27:33.780251932 +0200
++++ Dist-Zilla-6.039/t/plugins/nextrelease.t 2026-09-17 13:24:56.348839664 +0200
+@@ -3,11 +3,14 @@
+ use Test::More 0.88;
+ use utf8;
+
++use File::Temp qw(tempdir);
+ use Test::DZil;
+ use Test::Fatal;
+
+ local $ENV{TZ} = 'America/New_York';
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ my $changes = <<'END_CHANGES';
+ Revision history for {{$dist->name}}
+
+@@ -37,6 +40,7 @@
+ 'source/Changes' => $changes,
+ 'source/dist.ini' => simple_ini(qw(GatherDir =inc::TrashChanges NextRelease FakeRelease)),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -94,6 +98,7 @@
+ 'source/Changes' => $changes,
+ 'source/dist.ini' => simple_ini(qw(GatherDir NextRelease FakeRelease)),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -138,6 +143,7 @@
+ [ NextRelease => { format => "** FOOTASTIC %-9v", } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -161,6 +167,7 @@
+ [ NextRelease => { time_zone => 'UTC', } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -185,6 +192,7 @@
+ qw(GatherDir NextRelease)
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -211,6 +219,7 @@
+ [ NextRelease => { format => "%v%T", } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -236,6 +245,7 @@
+ [ NextRelease => { format => "%-12V ohhai", } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -259,6 +269,7 @@
+ [ NextRelease => { format => "%v %U %E", } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -282,6 +293,7 @@
+ email => 'me@example.com' } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -312,6 +324,8 @@
+ email => 'me@example.com' } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -331,6 +345,7 @@
+ {
+ my $tzil = Builder->from_config(
+ { dist_root => 'corpus/dist/DZ-NonAscii' },
++ { tempdir_root => $temp_dir },
+ );
+
+ $tzil->build;
+@@ -355,6 +370,7 @@
+ [ FakeRelease => { user => 'NOBODY' } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/pkgdist.t Dist-Zilla-6.039/t/plugins/pkgdist.t
+--- Dist-Zilla-6.039.orig/t/plugins/pkgdist.t 2026-09-15 14:27:33.777760567 +0200
++++ Dist-Zilla-6.039/t/plugins/pkgdist.t 2026-09-17 12:29:11.308450887 +0200
+@@ -3,8 +3,11 @@
+ use Test::More 0.88;
+
+ use autodie;
++use File::Temp qw(tempdir);
+ use Test::DZil;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ my $with_dist = '
+ package DZT::WDist;
+ our $DIST = \'DZT-Blort\';
+@@ -70,6 +73,7 @@
+ 'source/bin/script.pl' => $script,
+ 'source/dist.ini' => simple_ini('GatherDir', 'PkgDist', 'ExecDir'),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/pkgversion.t Dist-Zilla-6.039/t/plugins/pkgversion.t
+--- Dist-Zilla-6.039.orig/t/plugins/pkgversion.t 2026-09-15 14:27:33.779185381 +0200
++++ Dist-Zilla-6.039/t/plugins/pkgversion.t 2026-09-17 12:30:42.005369029 +0200
+@@ -4,9 +4,12 @@
+
+ use autodie;
+ use utf8;
++use File::Temp qw(tempdir);
+ use Test::DZil;
+ use Test::Fatal;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ my $with_version = '
+ package DZT::WVer;
+ our $VERSION = 1.234;
+@@ -197,6 +200,7 @@
+ 'source/bin/script.pl' => $script,
+ 'source/dist.ini' => simple_ini('GatherDir', 'PkgVersion', 'ExecDir'),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -369,6 +373,7 @@
+ add_files => {
+ 'source/dist.ini' => simple_ini('GatherDir', 'PkgVersion', 'ExecDir'),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -402,6 +407,7 @@
+ [ PkgVersion => ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -434,6 +440,7 @@
+ [ 'PkgVersion' => { die_on_line_insertion => 1, use_our => 1 } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+ $tzil2->build;
+@@ -463,6 +470,7 @@
+ [ 'PkgVersion' => 'second' => { die_on_existing_version => 1 } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -484,6 +492,7 @@
+ [ 'PkgVersion' => { use_begin => 1 } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+ $tzil4->build;
+@@ -512,6 +521,7 @@
+ [ 'PkgVersion' => { use_package => 1 } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+ $tzil->build;
+@@ -586,6 +596,7 @@
+ [ 'PkgVersion' => { use_package => 1 } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+ $tzil->build;
+@@ -661,6 +672,7 @@
+ ),
+ 'source/lib/DZT/Sample.pm' => "package DZT::Sample;\n1;\n",
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -713,6 +725,7 @@
+ MODULE
+ 'source/lib/DZT/Sample.pm' => "package DZT::Sample;\nmy \$k = class->new;\n1;\n",
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/podsyntaxtests.t Dist-Zilla-6.039/t/plugins/podsyntaxtests.t
+--- Dist-Zilla-6.039.orig/t/plugins/podsyntaxtests.t 2026-09-15 14:27:33.781009476 +0200
++++ Dist-Zilla-6.039/t/plugins/podsyntaxtests.t 2026-09-17 12:31:16.327918128 +0200
+@@ -3,8 +3,11 @@
+ use Test::More 0.88;
+ use Test::Deep;
+
++use File::Temp qw(tempdir);
+ use Test::DZil;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ {
+ my $tzil = Builder->from_config(
+ { dist_root => 'corpus/dist/DZT' },
+@@ -15,6 +18,7 @@
+ [ PodSyntaxTests => ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/podversion.t Dist-Zilla-6.039/t/plugins/podversion.t
+--- Dist-Zilla-6.039.orig/t/plugins/podversion.t 2026-09-15 14:27:33.779306911 +0200
++++ Dist-Zilla-6.039/t/plugins/podversion.t 2026-09-17 12:33:51.697605149 +0200
+@@ -3,8 +3,11 @@
+ use Test::More 0.88;
+
+ use autodie;
++use File::Temp qw(tempdir);
+ use Test::DZil;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ my $with_place_for_pod = '
+
+ package DZT::WPFP;
+@@ -77,6 +80,7 @@
+ 'source/bin/script.pl' => $script,
+ 'source/dist.ini' => simple_ini('GatherDir', 'PodVersion', 'ExecDir'),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/prereqs.t Dist-Zilla-6.039/t/plugins/prereqs.t
+--- Dist-Zilla-6.039.orig/t/plugins/prereqs.t 2026-09-15 14:27:33.777858568 +0200
++++ Dist-Zilla-6.039/t/plugins/prereqs.t 2026-09-17 13:25:29.462302754 +0200
+@@ -4,8 +4,11 @@
+ use Test::Fatal qw(exception);
+ use Test::Deep;
+
++use File::Temp qw(tempdir);
+ use Test::DZil;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ {
+ my $tzil = Builder->from_config(
+ { dist_root => 'corpus/dist/DZT' },
+@@ -20,6 +23,7 @@
+ [ Prereqs => Recommends => { E => 7 } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -55,6 +59,7 @@
+ [ Prereqs => BuildRequires => { A => 0, B => 2, C => 0 } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -91,6 +96,7 @@
+ [ RemovePrereqs => { remove => [ qw(B C) ] } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -129,6 +135,7 @@
+ => { qw(-type recommends), E => 7 } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -164,6 +171,7 @@
+ [ Prereqs => NotMagic => { B => 3 } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+ },
+@@ -188,6 +196,7 @@
+ [ Prereqs => Recommends => { qw(-phase test), G => 2 } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/prunes.t Dist-Zilla-6.039/t/plugins/prunes.t
+--- Dist-Zilla-6.039.orig/t/plugins/prunes.t 2026-09-15 14:27:33.777385805 +0200
++++ Dist-Zilla-6.039/t/plugins/prunes.t 2026-09-17 12:35:33.868412185 +0200
+@@ -4,8 +4,11 @@
+
+ use lib 't/lib';
+
++use File::Temp qw(tempdir);
+ use Test::DZil;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ for my $skip_skip (0..3) {
+ my $tzil = Builder->from_config(
+ { dist_root => 'corpus/dist/DZT' },
+@@ -25,6 +28,7 @@
+ ($skip_skip & 1 ? 'MANIFEST.SKIP' : ()),
+ )),
+ },
++ tempdir_root => $temp_dir,
+ also_copy => { 'corpus/extra' => 'corpus/extra' },
+ },
+ );
+@@ -59,6 +63,7 @@
+ ($skip_skip & 1 ? [ ManifestSkip => { skipfile => 'FOO.SKIP' } ] : ()),
+ ),
+ },
++ tempdir_root => $temp_dir,
+ also_copy => { 'corpus/extra' => 'corpus/extra' },
+ },
+ );
+@@ -84,6 +89,7 @@
+ 'source/Build' => "This file is cruft.\n",
+ 'source/dist.ini' => simple_ini('GatherDir'),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -106,6 +112,7 @@
+ 'source/Build' => "This file is cruft.\n",
+ 'source/dist.ini' => simple_ini('GatherDir', 'PruneCruft'),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -132,6 +139,7 @@
+ [ 'PruneCruft' => { except => 'Build' } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -157,6 +165,7 @@
+ 'source/dist.ini~1~' => "This backup is cruft.\n",
+ 'source/%dist.ini%~' => "This backup is cruft.\n",
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -182,6 +191,7 @@
+ 'source/t/perltidy.ERR' => "This file is cruft.\n",
+ 'source/lib/DZT/perltidy.ERR' => "This file is cruft.\n",
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -204,6 +214,7 @@
+ 'source/_Inline/foo.c' => "This file is cruft.\n",
+ 'source/dist.ini' => simple_ini('GatherDir', 'PruneCruft'),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -231,6 +242,7 @@
+ 'source/DZT-Sample-1/baz' => "baz from previous build\n",
+ 'source/DZT-Sampler-1/stays' => "file stays\n",
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -256,6 +268,7 @@
+ [ PruneFiles => { $arg => 'dist.ini' } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -280,6 +293,7 @@
+ [ PruneFiles => { match => '^dist.ini|\.t$' } ],
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/readme.t Dist-Zilla-6.039/t/plugins/readme.t
+--- Dist-Zilla-6.039.orig/t/plugins/readme.t 2026-09-15 14:27:33.777522505 +0200
++++ Dist-Zilla-6.039/t/plugins/readme.t 2026-09-17 12:36:13.521466524 +0200
+@@ -4,14 +4,18 @@
+ use utf8;
+
+ use autodie;
++use File::Temp qw(tempdir);
+ use Test::DZil;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ my $tzil = Builder->from_config(
+ { dist_root => 'corpus/dist/DZT' },
+ {
+ add_files => {
+ 'source/dist.ini' => simple_ini('Readme'),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -41,6 +45,7 @@
+ {
+ my $tzil = Builder->from_config(
+ { dist_root => 'corpus/dist/DZ-NonAscii' },
++ { tempdir_root => $temp_dir },
+ );
+
+ $tzil->build;
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/release_status.t Dist-Zilla-6.039/t/plugins/release_status.t
+--- Dist-Zilla-6.039.orig/t/plugins/release_status.t 2026-09-15 14:27:33.781150323 +0200
++++ Dist-Zilla-6.039/t/plugins/release_status.t 2026-09-17 12:37:08.825394890 +0200
+@@ -5,9 +5,12 @@
+
+ use lib 't/lib';
+
++use File::Temp qw(tempdir);
+ use Test::DZil;
+ use JSON::MaybeXS;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ # protect from dzil's own release environment
+ local $ENV{RELEASE_STATUS};
+ local $ENV{TRIAL};
+@@ -24,6 +27,7 @@
+ 'TestReleaseProvider',
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -49,6 +53,7 @@
+ 'GatherDir',
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -82,6 +87,7 @@
+ 'TestReleaseProvider',
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -103,6 +109,7 @@
+ 'TestReleaseProvider',
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -122,6 +129,7 @@
+ { is_trial => '1' }, 'GatherDir', 'TestReleaseProvider',
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -141,6 +149,7 @@
+ { version => 1.23 }, 'GatherDir',
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -160,6 +169,7 @@
+ { version => "1.23_45" }, 'GatherDir',
+ ),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/testrelease.t Dist-Zilla-6.039/t/plugins/testrelease.t
+--- Dist-Zilla-6.039.orig/t/plugins/testrelease.t 2026-09-15 14:27:33.780363176 +0200
++++ Dist-Zilla-6.039/t/plugins/testrelease.t 2026-09-17 12:37:14.403723179 +0200
+@@ -3,15 +3,19 @@
+ use Test::More 0.88;
+ use Test::Fatal;
+
++use File::Temp qw(tempdir);
+ use Test::DZil;
+ use File::Temp qw( tempdir );
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ sub new_tzil {
+ #my $tmpdir = tdir();
+ my $tzil = Builder->from_config(
+ { dist_root => 'corpus/dist/DZT', },
+ {
+ add_files => { 'source/dist.ini' => simple_ini(qw(GatherDir MakeMaker TestRelease FakeRelease)), },
++ tempdir_root => $temp_dir,
+ },
+ );
+ }
+diff -u -r Dist-Zilla-6.039.orig/t/plugins/uploadtocpan.t Dist-Zilla-6.039/t/plugins/uploadtocpan.t
+--- Dist-Zilla-6.039.orig/t/plugins/uploadtocpan.t 2026-09-15 14:27:33.780581527 +0200
++++ Dist-Zilla-6.039/t/plugins/uploadtocpan.t 2026-09-17 12:37:30.305204191 +0200
+@@ -2,10 +2,13 @@
+ use warnings;
+ use Test::More 0.88 tests => 17;
+
++use File::Temp qw(tempdir);
+ use File::Spec ();
+ use Test::DZil qw(Builder simple_ini);
+ use Test::Fatal qw(exception);
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ #---------------------------------------------------------------------
+ # Install a fake upload_file method for testing purposes:
+ sub Dist::Zilla::Plugin::UploadToCPAN::_Uploader::upload_file {
+@@ -24,6 +27,7 @@
+ add_files => {
+ 'source/dist.ini' => simple_ini('GatherDir', @_),
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+ }
+diff -u -r Dist-Zilla-6.039.orig/t/tester-demo.t Dist-Zilla-6.039/t/tester-demo.t
+--- Dist-Zilla-6.039.orig/t/tester-demo.t 2026-09-15 14:27:33.776742248 +0200
++++ Dist-Zilla-6.039/t/tester-demo.t 2026-09-17 14:08:42.348000124 +0200
+@@ -3,12 +3,15 @@
+ use Test::More 0.88;
+
+ use Dist::Zilla::App::Tester;
++use File::Temp qw(tempdir);
+ use Test::DZil;
+
+ ## SIMPLE TEST WITH DZIL::APP TESTER
+
+ $ENV{DZIL_GLOBAL_CONFIG_ROOT} = 't';
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ my $result = test_dzil('corpus/dist/DZ1', [ qw(build) ]);
+
+ is($result->error, undef, 'No errors');
+@@ -26,6 +29,7 @@
+ { dist_root => 'corpus/dist/DZT' },
+ {
+ add_files => { 'source/dist.ini' => simple_ini('@Classic') },
++ tempdir_root => $temp_dir,
+ }
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/tester-local-plugins.t Dist-Zilla-6.039/t/tester-local-plugins.t
+--- Dist-Zilla-6.039.orig/t/tester-local-plugins.t 2026-09-15 14:27:33.782503041 +0200
++++ Dist-Zilla-6.039/t/tester-local-plugins.t 2026-09-17 14:08:49.992967685 +0200
+@@ -3,9 +3,12 @@
+
+ use Test::More 0.88;
+ use Dist::Zilla::Tester;
++use File::Temp qw(tempdir);
+ use Test::DZil;
+ use Test::Fatal;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ my $tzil;
+ is(
+ exception {
+@@ -26,6 +29,7 @@
+ 1;
+ PLUGIN
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+diff -u -r Dist-Zilla-6.039.orig/t/tester.t Dist-Zilla-6.039/t/tester.t
+--- Dist-Zilla-6.039.orig/t/tester.t 2026-09-15 14:27:33.776418442 +0200
++++ Dist-Zilla-6.039/t/tester.t 2026-09-17 14:03:32.242109005 +0200
+@@ -2,9 +2,12 @@
+ use warnings;
+
+ use Archive::Tar;
++use File::Temp qw(tempdir);
+ use Test::More 0.88;
+ use Test::DZil;
+
++my $temp_dir = tempdir('CLEANUP' => 1);
++
+ my $tzil = Builder->from_config(
+ { dist_root => 'corpus/dist/DZT' },
+ { add_files => {
+@@ -13,6 +16,7 @@
+ name => 'DZT',
+ }, 'GatherDir', 'MakeMaker', 'FakeRelease')
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
+@@ -51,6 +55,7 @@
+ name => 'DZT',
+ }, 'GatherDir', 'MakeMaker', 'FakeRelease')
+ },
++ tempdir_root => $temp_dir,
+ },
+ );
+
diff --git a/perl-Dist-Zilla.spec b/perl-Dist-Zilla.spec
index c40f438..02b9bc6 100644
--- a/perl-Dist-Zilla.spec
+++ b/perl-Dist-Zilla.spec
@@ -1,6 +1,6 @@
Name: perl-Dist-Zilla
Version: 6.039
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Distribution builder; installer not included!
License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/release/Dist-Zilla
@@ -209,6 +209,9 @@ make test
%{_libexecdir}/%{name}
%changelog
+* Thu Sep 17 2026 Michal Josef Špaček <mspacek@redhat.com> - 6.039-3
+- Fix tests in *tests package
+
* Tue Sep 15 2026 Michal Josef Špaček <mspacek@redhat.com> - 6.039-2
- Fix metaresources test
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-17 18:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-17 18:49 [rpms/perl-Dist-Zilla] f44: Fix tests in *tests package
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox