Sys-Syslog/t/constants.t couldn't find macros.all
authorDavid Mitchell <davem@iabyn.com>
Sat, 20 Feb 2010 16:02:58 +0000 (16:02 +0000)
committerDavid Mitchell <davem@iabyn.com>
Sun, 21 Feb 2010 23:39:03 +0000 (23:39 +0000)
The move from ext/ to cpan/ hadn't been reflected in the pathname
of macros.all. However, since tests are now run from the src dir,
the whole $ENV{PERL_CORE} bit is no longer necessary.
(Note that this line has already been modified from the CPAN version,
so a further change to it doesn't really matter as regards maintaining
sync with CPAN).

cpan/Sys-Syslog/t/constants.t

index 04fce81..5ebfe6d 100644 (file)
@@ -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);