Subject: | t/constant.t is skipped under PERL_CORE |
In the core, tests are now run directly from the Sys-Syslog subdirecty, just like when one install it from CPAN. Hence the path to macros.all file doesn't need to be special cased anymore when PERL_CORE is set. Moreoever, it was pointing to the old path (in ext/, while Sys::Syslog is now in cpan/) and t/constant.t was skipped in core. Patch attached.
Vincent.
Vincent.
Subject: | sys-syslog-perl_core.patch |
--- t/constants.t
+++ t/constants.t
@@ -4,8 +4,7 @@ use File::Spec;
use Test::More;
# NB. For PERL_CORE to be set, taint mode must not be enabled
-my $macrosall = $ENV{PERL_CORE} ? File::Spec->catfile(qw(.. ext Sys-Syslog macros.all))
- : 'macros.all';
+my $macrosall = 'macros.all';
open(MACROS, $macrosall) or plan skip_all => "can't read '$macrosall': $!";
my @names = map {chomp;$_} <MACROS>;
close(MACROS);