Skip to content

Commit cc7e9dc

Browse files
committed
cperl test updates
ignore inc with Test::More because it clashes with the modernized Test::More variant in cperl. add YAML::XS to t/31sessions.t to be ignored.
1 parent b9a0a53 commit cc7e9dc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

t/31sessions.t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ EOF
358358
"make CPAN::Test::Dummy::Perl5::Build::Fails" => "Has.already.been.unwrapped",
359359
"test CPAN::Test::Dummy::Perl5::Build::Fails" => "(?i:t/00_load.+FAILED)",
360360
"o conf dontload_list push YAML" => ".",
361+
"o conf dontload_list push YAML::XS" => ".",
361362
"o conf dontload_list push YAML::Syck" => ".",
362363
"o conf dontload_list push Parse::CPAN::Meta" => ".",
363364
"o conf dontload_list push CPAN::Meta" => ".",
@@ -428,6 +429,7 @@ EOF
428429
"o conf dontload_list pop" => ".",
429430
"o conf dontload_list pop" => ".",
430431
"o conf dontload_list pop" => ".",
432+
"o conf dontload_list pop" => ".",
431433
"o conf commit" => "commit: wrote",
432434
],
433435
},

t/41distribution.t

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ use File::Temp qw(tempdir);
4444
use File::Spec::Functions qw/catdir catfile/;
4545
use File::Basename qw/basename/;
4646

47-
use lib "inc";
48-
use lib "t";
47+
use lib $Config::Config{usecperl} ? ("t") : ("inc", "t");
4948
use local_utils;
5049
use version;
5150

t/44cpanmeta.t

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ use File::Temp qw(tempdir);
2626
use File::Spec::Functions qw/catdir catfile/;
2727
use File::Basename qw/basename/;
2828

29-
use lib "inc";
30-
use lib "t";
29+
use lib $Config::Config{usecperl} ? ("t") : ("inc", "t");
3130
use local_utils;
3231

3332
# prepare local CPAN

0 commit comments

Comments
 (0)